grep

grep で input file 'XXXX' is also the output が出る件

grep の結果を標準出力にリダイレクトすると、以下のようなメッセージが出てくる。 $ grep -rn "todo" ./ --exclude-dir={.git} > grep_result grep: input file './grep_result' is also the output これは (標準出力させている)grep_result というファイ…

秀丸エディタで指定ディレクトリを除外する Grep を実現する

結論 別の grep ツール? ラッパーバッチファイル 考え方 バッチファイル中身 結論 秀丸エディタ単体では無理なので 別の grep ツールで grep 結果をファイルに吐き、 そのファイルを秀丸エディタで開いてタグジャンプする というやり方を用いる。 別の grep…