Grep コマンドを使用して一連のファイルから検索文字列を検索する場合、結果をテキスト ファイルにダンプするにはどうすればよいですか?
また、各エントリ間のライン フィードや、ファイル名と検索結果を正当化する方法など、読みやすくするためにクリーンな結果を提供する Grep コマンドのスイッチはありますか?
たとえば、アウェイ トゥ チェンジ...
./file/path: first result
./another/file/path: second result
./a/third/file/path/here: third result
に
./file/path: first result
./another/file/path: second result
./a/third/file/path/here: third result