cutとsortをパイプで繋げる
更新日:2018.05.09
作成日:2009.07.12
for((i =0;i<30;i++));
do
cut -d" " -f1,2 result$i.dat | sort -k 2 >sortOutputResult$i.dat;
done
cut -d" " -f1,2 result.dat
これで 区切りを " " つまり空白にして、その上で 1と2の部分を切り出している。切り出した情報を -k キーを2にしてsortをかけている。
参考
以下のページを参考にさせていただきました。お世話になりました。
Related contents

TECH
2009.07.29
mixiで全文検索するプログラムをRubyで作ってみた

TECH
2009.07.17
ペアプログラミング

TECH
2009.06.22
シェルスプリクトのお勉強

TECH
2010.01.22
Scalaスケーラブルプログラミング

TECH
2010.01.20
Flexでウェブアルバムが作りたい!!(5)

TECH
2008.11.28
processingによる可視化

TECH
2008.10.12
施設引き継ぎ資料

TECH
2008.08.30
文系的IT業と理系的IT業