Last active
January 10, 2017 08:57
-
-
Save gin135/c3d7c1c9cb771e0335d40533205e4a67 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
#!/bin/sh | |
w3m -dump -cols 200 'https://ja.wikipedia.org/wiki/%E5%85%83%E5%8F%B7%E4%B8%80%E8%A6%A7_(%E6%97%A5%E6%9C%AC)' 2>/dev/null | | |
grep '[ :][0-9]\{1,2\}年[ ^]' | | |
grep -v '定められず' | | |
sed '$d' | | |
awk '$0=$1' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
元号は全部で245個?