On 2013-11-26 20:51, Craig Sanders wrote:
> On Tue, Nov 26, 2013 at 02:53:28PM +1100, Tony Crisp wrote:
> > 
> > $ grep -vf machineB machineA
> > four
> > 
> > What's in B, but not in A?
> > 
> > $ grep -vf machineA machineB
> > three
> > seven
> 
> nice solution.  sometimes simplest is best.

This is what the 'comm' command is specifically designed for:

$ comm -3 machineA machineB
  # suppress lines that appear in both files

$ comm -13 machineA machineB
  # show only lines unique to file machineB

-- 
Regards,
Matthew Cengia

Attachment: signature.asc
Description: Digital signature

_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to