in reply to Re^3: Join lines that match an string
in thread Join lines that match an string

Linuxer your code is great as Ambrus one and yours keep the last line where it shoudl be, just to end this, how could I insert a blank where there was a line feed (\n)? because in some cases I need to separate the info and in others no

Again thanks for your help

Replies are listed 'Best First'.
Re^5: Join lines that match an string
by ambrus (Abbot) on Jul 13, 2010 at 20:08 UTC

    Read Re: Join lines that match an string again, for it has two examples that both don't join the line after the p_args line, and do add a space if there'd be none where the lines are joined.