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