The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-14-2007
matrixmadhan matrixmadhan is online now
Technorati Master
 

Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
here is with awk considering backwards option
Code:
awk 'BEGIN{ while ( getline < "2" ) { arr[$0] = i++; } } { if (!( $0 in arr )) { print } }' 1
Reply With Quote