search for: matching_text_1

Displaying 1 result from an estimated 1 matches for "matching_text_1".

Did you mean: matching_text_2
2008 Aug 31
2
Help using ed [OT]
...till cannot get it correct using (.)a. Is it even possible to do it that way using the (.)a command? Thanks in advance Thomas code example that give a "no match". Fairly easy to read and understand example 1: ----------- for RFILE in $RLIST; do ed - RFILE <<- EOF H /\[matching_text_1\]/a This is the appended textline(s) for text1 . /\[matching_text_2\]/a This is the appended textline(s) for text2 . w q EOF done Another example that solve the above problem. But this example become very easy unreadable if the appended text is long and/or inclu...