Re: [ILUG] Opposite of Cat >>

From: Mel (mel at domain csn.ul.ie)
Date: Tue 11 Jun 2002 - 18:43:38 IST


I haven't read this full thread yet, I'm behind on mail but everything I
have read so far is sed or regexp based. That struck me as strange, why
not just append the changes to a temp file and run diff on them? That will
give you a patch that can be reversed with one line. If the configuration
file changes all over the place, it'll still apply with offsets, unless
the inserted lines get changed, in which case sed won't work either.

-- 
Mel Gorman
MSc Student, University of Limerick
http://www.csn.ul.ie/~mel


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:12 GMT