Created
January 20, 2016 13:17
-
-
Save Photonios/23f72d7c07588abf3e03 to your computer and use it in GitHub Desktop.
Pulls next few busses from ctpcj.ro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Usage: bus [bus line number]" | |
exit 1 | |
fi | |
wget -qO- http://ctpcj.ro/orare/csv/orar_$1_lv.csv | cut -d , -f1 | grep --color=never : | grep `date +%H` -A 3 -B 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment