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

Re: [FWP] Wanted - Have = Need



On Fri, Oct 13, 2000 at 10:24:23AM -0400, Bernie Cosell wrote:
> On 13 Oct 00, at 15:07, fergal daly wrote:
> 
> > It's not perl and not that much fun but if you want to do this, the
> > easiest way I've seen is
> > 
> > uniq -u WANT HAVE HAVE
> 
> Does this work in modern versions of uniq?  All the versions I've 
> every used (including the one I have right here [just checked]) have 
> been specific about requiring a *sorted* file.  So the standard thing 
> I do is:
> 
> sort WANT HAVE HAVE | uniq -u
> 
> Still not perl and not all that much fun...

And what if he wants something so badly that it appears more than once in
the WANT file?  The WANT and HAVE files should first be uniq'ed
individually.

Ronald

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe