search for: matching_text_2

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

Did you mean: matching_text_1
2008 Aug 31
2
Help using ed [OT]
...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 includes linebreaks. Example 2: ---------- for RFILE in $RLIST; do ed - $RFILE <&lt...