From: Brian (singer at domain redbrick.dcu.ie)
Date: Tue 05 Oct 1999 - 18:34:12 IST
On Tue, Oct 05, 1999 at 06:16:58PM +0100, Matthew Sammon wrote:
> Just a quick question:
> How do I replace newlines with something else in multiple
> files, preferably using awk or sed?
> I need to replace:
> : BAR
singer at domain mother $ cat >asdasdasdasd
singer at domain mother $ cat asdasdasdasd | tr '\n' ' '
one line two line three line 4 singer at domain mother $
tr is your friend :)
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:40 GMT