Re: How to convert from Mac text files to Linux text files??


Subject: Re: How to convert from Mac text files to Linux text files??
From: Reid Ellis (rae@tnir.mef.org)
Date: Mon Nov 29 1999 - 12:01:47 MST


> alias myvi="dos2unix $1;vi $1;unix2dos $1";
>
> (Note: That doesn't work. Does someone who is better at bash care to
> correct it?)

I know nothing of dos2unix, but it would probbaly be something like this:

        myvi() {
                dos2unix "$@";
                vi "$@";
                unix2dos "$@";
        }

Note that using "$@" with quotes around it like that handles file names with
spaces in them. Useful for files transferred to/from a Mac or PC.

Reid



This archive was generated by hypermail 2a24 : Fri Dec 03 1999 - 19:07:33 MST