2006-09-15 ファイルをシャッフル a.txt の内容を行単位でシャッフルし、標準出力に書き出す。 $ perl -ne 'print rand(), ",$_"' a.txt | sort | cut -d "," -f 2-