So I've got a CSV file, test.csv
, with the following:
Apples
Pears
Oranges
They would be comma separated given its a csv file.
I have a variables
test="app"
I want to remove anything from the csv file with that variable contents in it. So the output would be in a new file test1.csv:
Pears
Oranges