Skip to content

Instantly share code, notes, and snippets.

@irasally
Created September 27, 2012 01:19
Show Gist options
  • Save irasally/3791637 to your computer and use it in GitHub Desktop.
Save irasally/3791637 to your computer and use it in GitHub Desktop.
同じ単語がいくつ出てきたかを調べるコマンド
$ cat some.log | sort | uniq -c | sort -n
1 id:0000123 success. [335 msec]
1 id:0000456 success. [320 msec]
1 id:0001234 success. [318 msec]
1 use TABLE3_0000000001
2 use TABLE1_0000000001
4 use TABLE2_0000000001
#### some.log
use TABLE1_0000000001
id:0000123 success. [335 msec]
use TABLE1_0000000001
use TABLE2_0000000001
id:0000456 success. [320 msec]
use TABLE2_0000000001
id:0001234 success. [318 msec]
use TABLE2_0000000001
use TABLE3_0000000001
use TABLE2_0000000001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment