
26 Nov
2013
26 Nov
'13
9:57 p.m.
On Wed, 27 Nov 2013, 00:21, Matthew Cengia wrote: } 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 Good one =] T.