How to compare two text files

g geleem at bellsouth.net
Thu May 6 13:23:01 UTC 2010


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/
****

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 545 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20100506/dc2bac1f/attachment.bin 


More information about the users mailing list