[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>)



On Sun, 27 Jul 2003, kean wrote:

> 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?

look for dos2unix.

however, in vi, it's trivial to have a global search and replace the CR
(otherwise known as ctrl-M or ^M).

:s/^V^M//g

the first ^V (ctrl-V) is an escape to the ^M.

Regards,                           /\_/\   "All dogs go to heaven."
dinesh@alphaque.com                (0 0)    http://www.alphaque.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+


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