2018-01-16から1日間の記事一覧
xargs やfind exec でリダイレクトを使うには sh を挟むのが覚えやすくて楽 sh -c ' cmd "{}"> out.txt ' find と xargs の例 find . | xargs -I@ sh -c ' echo "@" >> names.txt ' find . -exec sh -c ' echo "{}" >> names.txt ' 参考資料 https://stackov…
xargs やfind exec でリダイレクトを使うには sh を挟むのが覚えやすくて楽 sh -c ' cmd "{}"> out.txt ' find と xargs の例 find . | xargs -I@ sh -c ' echo "@" >> names.txt ' find . -exec sh -c ' echo "{}" >> names.txt ' 参考資料 https://stackov…