At Tue, 29 Jul 2003 21:50:53 +1000, Mary wrote:
> On Tue, Jul 29, 2003, Voytek Eymont wrote:
> > - what can I use to strip the CR ?
> The command dos2unix will do this.
"tr -d '\r' < dosfile > unixfile" will also do the trick for simple
cases.
I usually just load it up in an editor (emacs or vi) and delete the
\r's using the normal "replace all strings matching" functionality.
vi: :%s/.$//
- which is a cop-out, since I can never remember how to put a literal
\r in
emacs: M-x replace-string RET
C-q RET RET
RET
- ie: replace literal RET (C-q "quotes" the next key) with the empty
string
--
- Gus
--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug