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 -->
  #2 (permalink)  
Old 08-14-2007
jim mcnamara jim mcnamara is offline
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,365
Your example seems to be backwards from your worded request. List1 should be Tom John?

Anyway, one way to do what you seem to ask
Code:
grep -v -f List2 List1> newlist1; mv newlist1 List1
Reply With Quote