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

Liam Bedford lbedford at lbedford.org
Tue Feb 3 10:19:12 GMT 2004


Brian Foster wrote:

> incidentally, previous posters have suggested:
>       cat FILE1 FILE2 | sort | uniq --unique
> winning the “Useless Use of cat(1)‟ Award™, and:
>       sort < FILE1 < FILE2 | uniq --unique
> winning the "I Didn't Test This‟ Award™.
>
>  
>
Cool.. I got an award while I had a cold :)

> what's wrong with?:
>       sort FILE1 FILE2 | uniq --unique
> or the `comm' (almost-)equivalent:
>       sort FILE1 FILE2 | comm -3
> since sort(1) іs a _merge_-and-sort utility?
>
>  
>
Probably nothing.. but I didn't manage to think that far ahead <g>

L.




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