[ale] diff on 2 directories
Jerry Yu
jjj863 at gmail.com
Tue May 20 14:22:57 EDT 2008
Assume you are interested only in them perl programs and they are nicely
named with .pl extension
If names is not consistent, 'file' can be used to generate the set to
compare, as perl scripts is "perl script text executable" per 'file'.
Two-step comparison
- cd dir1 && for i in `find . -type f -name "*.pl"`; do ---- $i ----;
diff $i dir2/$i; done
- cd dir2 && for i in `find . -type f -name "*.pl"`; do ---- $i ----;
diff $i dir1/$i; done
On Tue, May 20, 2008 at 1:42 PM, Chris Fowler <cfowler at outpostsentinel.com>
wrote:
> Are there any good tools to do a diff on two directory trees? I'm doing
> an upgrade and there are many perl programs spread throughout and I want
> to see the differences. I've used the diff program before but these
> trees are big and there will be a lot of noise. There are binary files
> as well as text files.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20080520/eca7e1a2/attachment.html
More information about the Ale
mailing list