[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] Mac -> Unix file types



Files moved via CDROM, not ftp.
This line, in my conversion script, does the trick for me.

	cat $file | tr '\r' '\n'  > fileunix	#temp file

It's based on an earlier suggestion:
        $ perl -n -e 'tr/\r/\n; print $_;' FILE > NEWFILE,
which actually should be
        $ perl -n -e 'tr/\r/\n/; print $_;' FILE > NEWFILE
i.e. translating \r returns to \n newlines.

Thanks, 
Jim


On Sun, 22 Oct 2000 23:20:44 +0100, Michelle A. Hoyle wrote:

>You didn't mention how you've been moving the files from your Mac to 
>UNIX.  If you use a decent FTP program, it will take care of this for 
>you.  I use Interarchy (formerly Anarchie) and I don't usually have 
>to worry about converting between UNIX/Mac in my text editor.      I 
>do all of my Perl programming (and C!) on my Mac and then FTP it to 
>my UNIX machines with no problems.
>