Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

sed Linebreaks

$
0
0
Hi All,

I have a linebreak in mid text \n and would like to remove this. I only want the \n at the end of the line.

Any suggetions on how I would get this to work?

I had:

Code:

cat $LOGFILE| sed
                '{
                /\n\
                /\n$\!
                s\n\g
                }'

But this didn't work, please can someone help?

Viewing all articles
Browse latest Browse all 16232

Trending Articles