Need a quick sed recipe :-(

Kevin D. Clark clark_k at pannaway.com
Tue Aug 23 15:22:01 EDT 2005


> Look for a marker in a file and delete the line with the marker. Then
> insert file2 at that location.

sed -e '/MARKER/{
r /tmp/file2
d
}' file

--kevin
-- 
Kevin's new Elephant Memory Systems Tribute Page:
  http://home.comcast.net/~kevin_d_clark/ems/



More information about the gnhlug-discuss mailing list