Last active
January 10, 2017 09:01
-
-
Save gin135/a8784d239e6187e8a5eab88b050cef1b 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' | | |
tr -d ' ' | | |
grep -o . | | |
sort | | |
uniq -c | | |
sort -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
こちらもhttps://gist.github.com/gin135/c3d7c1c9cb771e0335d40533205e4a67 と同様に修正。
改めて集計結果をば。