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 06-22-2004
joerg's Avatar
joerg joerg is offline
Registered User
 

Join Date: Jan 2002
Location: Germany
Posts: 167
Hi!
you can use sdiff with the option -s to print only not identical lines.

ls -la /first_dir > 1.dir
ls -la /seconed_dir >2.dir
sdiff -s 1.dir 2.dir

I hope this help.
regards joerg
Reply With Quote