Need a quick sed recipe :-(
    Steven W. Orr 
    steveo at syslang.net
       
    Tue Aug 23 14:35:01 EDT 2005
    
    
  
40 Quatloos to the winner.
Here's what I need:
Look for a marker in a file and delete the line with the marker. Then 
insert file2 at that location.
I have
sed '/MARKER/d' file
and I have
sed '/MARKER/r file2' file
but I'd like to just put the two together in one sed command. (Two -e 
options don't count.)
Anyone? :-(
-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
    
    
More information about the gnhlug-discuss
mailing list