2016-09-16 findを使って再帰的なgrep find ./ -name '*' | xargs grep hogehoge 拡張子がphpのものだけならばfindの時点で絞ってあげればいい。 find ./ -name '*.php' | xargs grep hogehoge