2013-07-22から1日間の記事一覧

commコマンドを使って文字列でsort済みの2つのファイルの比較をし「片方だけに存在する行」「共通の行」を出力する

追記「文字列でsort済みの」って入れ忘れてた。 manに The comm utility reads file1 and file2, which should be sorted lexically,って書いてある通り、「sorted lexically」でないとダメ(「sort -n」ではなく「sort」でsortする)なので、 comm <(sort i…