#author("2018-03-28T18:09:27+09:00","default:ryu","ryu") #author("2018-03-28T18:13:01+09:00","default:ryu","ryu") #nofollow #norelated [[Memorandums]]&br; 総数:&counter(total); 今日:&counter(today); 昨日:&counter(yesterday); * もくじ [#m19172e1] #contents *find-xargsでmvやcpに引数を渡す方法 [#lc0e87df] **-iオプションでできます。 [#r443089b] $ find . -type f | xargs -i mv {} {}.html - "pretty"という文字列を含むファイルの名前を変更する $ find . -type f | xargs grep -nil --color -e "pretty" | xargs -i mv {} {}.html **{}以外の記号を使いたい場合は [#yeb1f1fe] $ find . -name '*.sh' -mtime -4 -mtime +3 | xargs -i% mv % /tmp