[EMAIL PROTECTED] forced the electrons to say:
> Hello Folks,
> I need to find a list of files which are modified OR new in directory B
> when compared to directory A
diff -Nrq directory1 directory2
> I dont need the additional info given out by diff - just the file names
The o/p of the above are lines of the form:
Files directory1/file1 and directory2/file1 differ
You can use awk/perl/anything to separate out the filenames.
> I need to know this so that I can tar and upload only those files to my
> site
Then upload the actual diff output and use patch(1). This will be easier to
do - like:
diff -Naur directory1 directory2 > files.diff
and after uploading, you can use
patch -p0 < files.diff
Use the correct -p option to patch.
Binand
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/