$ sed 's/a/c/g' sample_a.txt | diff - sample_b.txt 1c1 < This is c --- > This is b
xargs とは 標準入力から渡されたファイル名などを引数とみなして、別のコマンドの引数として起動するというものです。 http://openlab.dino.co.jp/2008/02/20/133431188.html というものらしい。 言葉だけではピンとこないので具体例で言うと、 % find . -type f | while read line do chmod g+w $line done と同じことを xargs を使うと、 find . -type f | xargs chmod g+w でできる。 [使用例] % mkdir -p {a,b,c}/{1,2,3} % find . | xargs -I{} touch {}/hoge.txt % find . -type f | xargs ls -l -rw-r--r-- 1 oracle oinstall 0 Aug
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く