From: nera Avinera (avinera@yahoo.com)
Date: Thu Feb 06 2003 - 03:18:07 EST
I had asked for sorting 2 files and outputing the uniq
entries in a separate file. Overwhelming response...I
cannot name poeple becoz of of the no of responses.
Thanks to all..
I could not try all of them but what I tried and
worked is below: -
1. comm -2 file1 file2 > file3
2. sdiff file1 file2 | grep '>' > file3
3. diff file1 file2 | grep ^\> | awk '{ print $NF }'
4. comm -13 file1 file2
5. cat file1 file2 | sort | uniq -u
6. diff -c file1 file2 | grep "^+ " | sed "s/^+//" >
file3
7. cat file1 file2 | sort -u > file3
8. grep -v -f file1 file2 > file3
9. diff file1 file2 | grep ">" | cut -c3-
10. cat file1 file2 | sort -n | uniq -u
Thanks
Awaneesh
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:25 EDT