I'm dealing with a CSV file that contains over 2 million lines. Quite a big one.
I need to use grep (or any better way) to retrieve the entire row if the value of the second column matches 'jpn' or 'por'.
I tried using grep '<\jpn\>' || grep '<\por\>' file1.csv > file2.csv
but had no success so far. The major issue being that 'por' is a common occurrence on the third column, which generates over a million of undesired rows.
Would any more experienced user be se kind and lend me some help?
Thanks in advance! :D