[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script to compare the contents of two JARs



On Fri, Aug 15, 2003 at 10:46:03AM -0400, Matt Zimmerman wrote:
> On Fri, Aug 15, 2003 at 04:35:00PM +0200, Philipp Meier wrote:
> 
> > On Fri, Aug 15, 2003 at 10:13:42AM -0400, Matt Zimmerman wrote:
> > > This sounds useful.  I think it could be simplified to use comm(1) rather
> > > than parsing a unified diff, though.
> > 
> > grep -f is more useful. See attached script.
> 
> How is "grep -Fxvf $tempfile2 $tempfile1" more useful than
> "comm -23 $tempfile1 $tempfile2", exactly?

Not at all :-) I didn't know that comm supports leaving out more than
one column.

-billy.

-- 
Meisterbohne   Meisterbohne GbR, Küfner, Mekle, Meier   Tel: +49-731-399 499-0
   eLösungen   Söflinger Straße 100                     Fax: +49-731-399 499-9
               89077 Ulm                           http://www.meisterbohne.de/



Reply to: