2015-01-07から1日間の記事一覧

ある条件をみたすファイルを消す xargs

空白でくぎって出力して、rmにつなぐ find . -name "*_test_test*" | xargs rm これだとスペースがあるファイルは検出できないので、 find . -name "*_test_test*" -print0 | xargs -0 rm http://openlab.dino.co.jp/2008/02/20/133431188.html

2つのファイルの1列目でマージ ワンライナー風 join コマンド

2つのCSVのファイルの1列目でマージ. join コマンドを使う。 joinは事前にsort する必要あり. join コマンド http://yut.hatenablog.com/entry/20120907/1346975281 入力ファイル source1.txt 5,a 2,b 3,c 1,d source2.txt 1,A 2,B 3,C 5,D 7,E スクリプ…