Skip to main content
2 of 2
removed the stray prompt and simplified the existing one, to avoid distractions
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265
$ awk -F "," '{if ($1 != $2)print $0}' filename
text1,text2,string1,string2
text4,text5,string1,string2
Praveen Kumar BS
  • 5.3k
  • 2
  • 11
  • 16