Re: sed replacing newline

2003-06-01 Thread Cameron Simpson
On 14:42 31 May 2003, dbrett <[EMAIL PROTECTED]> wrote: | I have a file where all the text was put on one line. I noticed where | there should have been a new line there was a ")" just before. I tried to | use sed to add a newline. I could not get it to work. | | cat junk.txt | sed s/\)/\n/g |

sed replacing newline

2003-06-01 Thread dbrett
I have a file where all the text was put on one line. I noticed where there should have been a new line there was a ")" just before. I tried to use sed to add a newline. I could not get it to work. cat junk.txt | sed s/\)/\n/g I tried quoting adding quotes. Does anybody know if it is possibl