How to restrict grep to search only the one column within a CSV file, but to output matching lines in their whole?の回答を使用していますか? awk で特定の列を検索し、一致する行を出力します。例:
awk -F@ "{if (\$2 ~ /$find_me/ ) { print \$0; } }" <input_file>
$find_me
列が完全に一致する行のみに一致するように検索を制限するにはどうすればよいですか?- ファイル内で見つかった最初の一致のみを出力するように検索を制限するにはどうすればよいですか?