2010-02-25 ■ unix unix 特定の列だけ取り出す cut [InputFile] 1,2 1,4 1,7 2,4 2,7 cut -d "," -f 1 [InputFile]| sort -n | uniq -cで、 [Output] 3 1 2 2 cut -d "," -f 2 [InputFile]| sort -n | uniq -cで、 [Output] 1 2 2 4 2 7となる。 d で区切り文字、fで出力列を決めている。