[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] diff on 2 directories
- Subject: [ale] diff on 2 directories
- From: jjj863 at gmail.com (Jerry Yu)
- Date: Tue, 20 May 2008 14:22:57 -0400
- In-reply-to: <[email protected]>
- References: <[email protected]>
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