From: Michele Andreoli (quisque@tin.it)
Date: Fri Nov 05 1999 - 00:54:16 CET
On Thu, Nov 04, 1999 at 12:40:29PM -0500, Larry Owens nicely wrote:
> At 06:06 PM 11/4/99 +0100, Hans-Juergen Geiss wrote:
> >Hello Robert.
> >
> >This will work:
> >dos2unix < source_file > destination_file
>
> And, from the redhat list, as a converter for dos files into native unix
> format.
>
> In the .[shell]rc file, add the following line:
>
> alias dos2unix="perl -p -i.bak -e 's/\015//g'"
>
> I didn't write this, but I use it.
>
> Larry
>
Larry, perl?! We have no Perl in muLinux :(
I think works also simply:
cat dosfile | tr -d '\015' > unixfile
but can't remember is my "tr" is smart enough for that ..
Michele
-- "I'd like to conclude with a positive statement, but I can't remember any. Would two negative ones do?" -- Woody Allen --------------------------------------------------------------------- To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk For additional commands, e-mail: mulinux-help@sunsite.auc.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:12 CET