Command:localhost ~]#$ awk -F "," '{if ($1 != $2)print $0}' filename
text1,text2,string1,string2
text4,text5,string1,string2
[root@localhost ~]#
removed the stray prompt and simplified the existing one, to avoid distractions
Jeff Schaller ♦
- 68.8k
- 35
- 122
- 264