[ILUG] File Difference

Tiarnan tiarnan.ocorrain at cmg.com
Thu Oct 31 13:36:07 GMT 2002


One approach would be to do something like the following:

bash# cat > a.txt
a
b
c
d

bash# cat > b.txt
a
b
c

bash# diff a.txt b.txt | grep "<" | sed s/\<\ //
d
bash#

-- 
Tiarnán Ó Corráin		CMG-WDSC
Sysadmin 			Cork.
tiarnan.o'corrain at cmg.com	+353-21-4933200

"Iraq: incredible weapons - incredible weapons." How do you know that? 
"Uh, well... We looked at the receipt." -- Bill Hicks, 1992



More information about the ILUG mailing list