TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:10735] FromDOS?
There is a dos2unix package and a unix2dos. Look here for the RPM:
http://rufus.w3.org/linux/RPM/DByName.html
Or else you can do it with a perl one-liner: (preferred method)
/usr/bin/perl -pi -e 's/\cM$//' <filename>
or
/usr/bin/perl -pi.bak -e 's/\cM$//' <filename>
to create a backup copy. A smart thing to do because you don't always
know what will happen.
Mike Hicks wrote:
>
> I'm looking for a script (in Perl, probably) to convert DOS text (CRLF)
> into UNIX text (LF?)..
>
> anyone have one?
>
> Also, I have been playing with gvim (pretty nice, I must say), but the
> backspace key doesn't want to play nice.. I have backspace working
> everywhere else, though.. GRR!
>
> --
> _ _ _ _ _ ___ _ _ _ ___ _ _ __ A flashlight is a case
> / \/ \(_)| ' // ._\ / - \(_)/ ./| ' /(__ for holding dead
> \_||_/|_||_|_\\___/ \_-_/|_|\__\|_|_\ __) batteries.
> [ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@umn.edu ]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
> For additional commands, e-mail: tclug-list-help@mn-linux.org
--
Clay Fandre
cfandre@maddog.mn-linux.org
Twin Cities Linux Users Group
http://www.mn-linux.org
- References:
- FromDOS?
- From: Mike Hicks <hick0088@tc.umn.edu>