I'm using the following command:
grep -F "searchterm" source.csv >> output.csv
to search for matching terms in source.csv
. Each line in the source file is like so:
value1,value2,value3|value4,value5
How do I insert only the fields value1,value2,value3
into the output file?