Skip to main content
added 83 characters in body
Source Link
BitsOfNix
  • 5.2k
  • 3
  • 28
  • 34
awk '{ if ($1 != $2 ) print $1" "$2; }' file 

Just replace file for the appropriate file.

Or as @manatwork mentioned in the comments and simpler

awk '$1!=$2' file 
awk '{ if ($1 != $2 ) print $1" "$2; }' file 

Just replace file for the appropriate file.

awk '{ if ($1 != $2 ) print $1" "$2; }' file 

Just replace file for the appropriate file.

Or as @manatwork mentioned in the comments and simpler

awk '$1!=$2' file 
Source Link
BitsOfNix
  • 5.2k
  • 3
  • 28
  • 34

awk '{ if ($1 != $2 ) print $1" "$2; }' file 

Just replace file for the appropriate file.