LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] comparing files

[ILUG] comparing files

Gavin McCullagh ilug_gmc at fiachra.ucd.ie
Mon Feb 2 23:30:27 GMT 2004


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




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell