I have a CSV file that looks like this format:
text1,text2,string1,string2
text3,text3,string3,string2
text4,text5,string1,string2
text6,text6,string6,string7
I want to extract rows when column1 and column2 are not equal. The expected result in the above example would be:
text1,text2,string1,string2
text4,text5,string1,string2
When column1 and column2 are not equal. I am familiar with commands that allow me extract specific column like the following to extract the first column:
cat input.csv | cut -d ',' -f1 > output.csv