On Friday 13 July 2007 00:32, Dan Nicholson wrote: > comm does something like that. This sorta works, where 1 and 2 are files. > > $ comm 1 2 | sed 's/^\t*//' > 111 > AAA > BBB > DUPLICATE > 222 > 333 > CCC
Unfortunatelly, not so easy. man comm says: comm - compare two sorted files line by line Note, comm compares _sorted_ files. It works fine with the example Peter gave but another one may give wrong output: $ cat 1 A B $ cat 2 B A $ comm 1 2 |sed 's/^\t*//' A B A -- Nothing but perfection Vladimir -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
