Re: How to compare two text files [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 6, 2010 at 6:53 PM, g <geleem@xxxxxxxxxxxxx> wrote:
> W.H. Kalpa Pathum wrote:
> <snip>
>
>> Any idea on how to accomplish this?
>
>
> cat file.a > file.c
> cat file.b >> file.c
> sort file.c > file.d
> uniq -u file.d > file.e
>
>
> --
>
> peace out.
>
> tc,hago.
>
> g
> .
>
> ****
> in a free world without fences, who needs gates.
> **
> help microsoft stamp out piracy - give linux to a friend today.
> **
> to mess up a linux box, you need to work at it.
> to mess up an ms windows box, you just need to *look* at it.
> **
> learn linux:
> 'Rute User's Tutorial and Exposition' http://rute.2038bug.com/index.html
> 'The Linux Documentation Project' http://www.tldp.org/
> 'LDP HOWTO-index' http://www.tldp.org/HOWTO/HOWTO-INDEX/index.html
> 'HowtoForge' http://howtoforge.com/
> ****
>
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>
>

Thanks for all your help

The way of NoSpaz with grep worked fine.
g's method gave me a unique list but it also had rows from file B. I
want them excluded.

Anyway thanks for all.

-- 
Best Regards,

W.H.Kalpa Pathum
http://kalpapathum.blogspot.com
http://thiraya.wordpress.com
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux