> I would like to strip the newline character from the end of each line
> in a text file.
> In other words, I would like:
> itema
> itemb
> itemc
> to look like:
> itema itemb itemc
> Is there some syntax in sed to do this?
> Thanks for any ideas.
> Chris
> Sent via Deja.com
> http://www.deja.com/
Looks like you want to not STRIP a hard return but TRANSLATE it to a space.
Otherwise it would look like: "itemaitembitemc". With that said, use the
translate command `tr`
tr '\012' ' ' <text.file >tmp.txt.file; mv tmp.txt.file text.file
- Matt
--
_______________________________________________________________________
<< Comments, views, and opinions are mine alone, not IBM's. >>