FrontPage

「-exec」オプションを使う。

→1件ごとにgrepが走っちゃう。

$ find ./ -type f -exec grep hogehoge {} \;

「xargs」を使う。

$ find ./ -type f -print0 | xargs -0 grep hogehoge > /dev/null

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2009-01-08 (木) 13:21:35 (610d)