On Mon, 02 Feb 2004, Niall O Broin wrote:
> On Monday 2 February 2004, ilug_gmc at fiachra.ucd.ie (Gavin McCullagh)
> wrote:
>> >On Mon, 02 Feb 2004, Liam Bedford wrote:
> >
> >> hmm.. wasn't there a tip from padraig.. something like
> >> sort < file1 < file2 | uniq -u
> >
> >is this not equivalent to
> >
> >sort -u file1 file2
>> No, it's not, and you probably missed the original post. There were two
> files, each of which had names, and the poster needed only those names
> which were only mentioned once in total. For this you need uniq -u
> (which outputs ONLY those lines which are unique)
Ah yes, somehow missed the -u
Thanks
Gavin
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!