On Fri, 16 Nov 2001, Chris Allen wrote:
perl -pi -e 's/\n/<br>/' maillog.extern
To avoid loading Perl, use this instead: cat maillog.extern | sed 's/$/<br>/' > maillog.extern
Obviously this can be embedded between other commands to make it rather more elegant. If you're curious, it's just a search/replace, adding <br> at $ (end of line).
Just for fun I'm going to fork the thread and ask how to print the fourth field of aligned text such as 'unzip -l' produces with awk. Or cut, if that's possible.
Alexis -- "The observer IS the observed! There is NO DIVISION between the CONTENT of consciousness and CONSCIOUSNESS ITSELF!" - Peekaboo, 'Rose is Rose' Attention. "Only that in you which is me hears what I am saying" - Baba Ram Dass