Hi 
I am a newbie in the field of open source . I was trying to make a
script that could extend the diff command so that it could take in two
directories with same structure and file names and find the diff
between all the files in them . Currently the command can only accept
two files whose diffs are to be found . What I want to make is
something like a "cvs diff" but without the se of cvs .
I was able to make one that could find the diffs of files in a single
directory . I want to extend it to include the subdirectories . My
code is as follows :

#!/bin/sh

ls > Result

cat Result  |  \
while read line
do
diff $line <relative path to the other directory>/$line
done

Earnest Regards
Abhinav 



-- 
Abhinav Jain 
UnderGraduate Student 
Department of Computer Science and Engineering 
Institute of Technology , Banaras Hindu University 
[EMAIL PROTECTED]

_______________________________________________
ilugd mailinglist -- [email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/[email protected]/

Reply via email to