2011-10-20 特定のファイルの中身をgrepする Linux zsh % less hoge.txt | grep 'キーワード' -n パイプをつけると良いわけですね。 grep -n 'キーワード' hoge.txt