Created
June 12, 2015 10:27
-
-
Save greymd/9f9d68f5aee96553d8f9 to your computer and use it in GitHub Desktop.
関東圏の路線の遅延情報取得シェル芸
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
curl -sLo- goo.gl/xEZPhi| grep info/deta -A1 | xargs | sed 's/ -- /\n/g' | grep -v 平常運転 | awk -F'[=><]' '{print $6,$5}' | while read a b; do echo -n $a":"; curl -so- $b | grep 'og:description' | grep -oP '(?<=content=").*(?=")' ;done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment