grep“ something” anyfiles.log> afile.csv、入力パスとファイル名をCSVファイルに出力する必要はありません
私はいくつかのログファイルを持っています、それらは30000行以上あります。「ドメイン」という名前を見つけてCSVファイルに保存する必要がありますが、保存後、CSVファイルの行の先頭に入力ファイルのパスとファイル名が追加されています。パスと入力ファイル名がCSVファイルに追加する必要がない場合はどうすればよいですか。 例: Input #cat /home/log/any.log any things..domain, anything any things..domain, anything any things..domain, anything grep "domain" /home/logs/any.log > newfile.csv Output: #cat newfile.csv /home/logs/any.log:domain /home/logs/any.log:domain /home/logs/any.log:domain #----My requirement output is: cat newfile.csv domain domain domain よろしくお願いします。誰か知っていたら助けてください