aboutsummaryrefslogblamecommitdiffstats
path: root/flight_status.ksh
blob: aa697ffd2a0c0168d28cb640dab9308dfa1e86f6 (plain) (tree)
1
2
3
4
5
6
7
8
               






                                                                                                                            
#!/usr/bin/bash

flight_status() { 
  curl --silent --stderr - "https://mobile.flightview.com/TrackByRoute.aspx?view=detail&al=$1&fn=$2&dpdat=$(date +%Y%m%d)" |
  html2text | grep -A19 "Status" ;
};

flight_status $1 $2