便利コマンド

忘れないように記しておくことにする。
http://www.k-tanaka.net/unix/find.html

カレントのファイルをリスト
find . -type f
リストしたファイルをgrep
find . -type f | xargs grep hoge
リストしたファイルをperlで
find . -type f | xargs perl do_something.pl

do_something.plは例えばこんな感じ

use strict;
foreach (@ARGV) {
  open(my $fh, "<$_") or die;
  while(my $line = <$fh>) {
    print $line;
  }
  close($fh);
}