[Gllug] Finding files in one directory only / diff question.

Tom Schutzer-Weissmann trmsw at yahoo.co.uk
Tue Jan 24 14:30:07 UTC 2006


On Tue, 2006-01-24 at 10:45 +0000, andrew Black wrote:
> Two related questions
> 1.  Is there a way of finding out which files exists in a directory a 
> but not in b. I want to know about some_subdir/only_in_a
>    a/some_subdir/only_in_a
>    a/some_other_subdir/in_both     b/some_other_subdir/in_both
>                                    b/some_subdir/only_in_b

Maybe you could use "rsync -n --ignore-existing", I've not tried it.

> One way of doing this is to do a find on both directories. Which leads 
> me to  my second questions
> 2. Is there an option to diff that will allow me to print out lines that 
> exist in first file only (ignoring lines that are in the second file only).

comm

cheers,
Tom


		
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list