-
-
Save libnumafly/7adc1166f3be18ce8d907c9661a654af to your computer and use it in GitHub Desktop.
JR関東地方の運行状況を取得するシェル芸
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/sh | |
curl -s http://traininfo.jreast.co.jp/train_info/kanto.aspx | | |
nkf -Lu | | |
grep -A 1 'text-tit-xlarge' | | |
sed '/acess_i/s/.*alt="\([^"]*\)".*/\1/' | | |
sed 's/<[^>]*>//g' | | |
tr -d -- '- ' | | |
awk NF=NF | | |
xargs -n 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment