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

Command:localhost ~]# awk -F "," '{if ($1 != $2)print $0}' filename
text1,text2,string1,string2
text4,text5,string1,string2
[root@localhost ~]#