Quote:> Please suggest alternatives, faster ways
You could try 'comm' if you have it on your system.
bash$ man comm
COMM(1) FSF COMM(1)
comm - compare two sorted files line by line
comm [OPTION]... LEFT_FILE RIGHT_FILE
Compare sorted files LEFT_FILE and RIGHT_FILE line by
-1 suppress lines unique to left file
-2 suppress lines unique to right file
-3 suppress lines unique to both files
--help display this help and exit
output version information and exit
Written by Richard Stallman and David MacKenzie.
Copyright ? 2001 Free Software Foundation, Inc.
This is free software; see the source for copying condi-
tions. There is NO warranty; not even for MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
The full documentation for comm is maintained as a Texinfo
manual. If the info and comm programs are properly
installed at your site, the command
should give you access to the complete manual.
comm (textutils) 2.0.14 March 2001 COMM(1)