The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Comparing a distinct value in 1 list with another list
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Comparing a distinct value in 1 list with another list
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
06-22-2004
joerg
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
joerg
View Public Profile
Find all posts by joerg