locate結果に対していろいろ
locate結果削除
locate Thumbs.db | perl -l0ne unlink
xargs(なんかうまくいかなかった、-Oオプションは必須らしい)
locate Thumbs.db | xargs -O rm
locate結果現存チェック
locate .htaccess| perl -l0ne 'print "!"if(!-e);print;print"\n";'
locate結果grep検索(multipart という文字の含まれるmail/index.html を調べる)
locate mail/index.html|perl -nle 'print "$.:$_"; system("grep 'multipart' $_")'
'...'(ドットの3連続とか)探したい場合
locate special.pl|perl -nle 'print "$.:$_"; system("grep '".'\\ \.\\\.\\\.'."' $_")'
-
-
- -
-