Find the answer to your Linux question:
Results 1 to 2 of 2
I have two lists of IP's OLDLIST and NEWLIST I want to make script to comparison the old one with the NEWLIST and If IP not found in the new ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    5

    simple comparison script

    I have two lists of IP's OLDLIST and NEWLIST
    I want to make script to comparison the old one with the NEWLIST and If IP not found in the new list put it in output file named FINALLIST
    Can anyone help me ?

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,047
    You could use `diff`
    Code:
    diff OLDLIST NEWLIST
    You may need to tweak it a little to do exactly what you want.
    Can't tell an OS by it's GUI

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...