[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ossig] help: convert dos text file to unix(<CR><NL> to <NL>)



fdOn Mon, 2003-07-28 at 15:20, kean wrote:
> Hi-
> does anyone knew how to getting away <CR>
> in the text file. I remember there is a tool but
> I forgot which one. any tool recommended?

dos2unix
man dos2unix for more.

> and I did set the vi configuration file .vimrc
> as ...
> set fileformats=unix,dos
> or is there anyway to match the <CR> and delete it?
> any suggestion?

you can also use tr (man tr), and to double check, pass the file onto od
(man od).
-- 
Colin Charles, byte@aeon.com.my
http://www.bytebot.net/


------------------------------------------------------------
To unsubscribe: send mail to ossig-request@mncc.com.my
with "unsubscribe ossig" in the body of the message