Google Answers Logo
View Question
 
Q: Text file format conversions DOS.unix/mac , line end characters ( No Answer,   2 Comments )
Question  
Subject: Text file format conversions DOS.unix/mac , line end characters
Category: Computers > Software
Asked by: unusualal-ga
List Price: $10.00
Posted: 23 Mar 2006 12:44 PST
Expires: 22 Apr 2006 13:44 PDT
Question ID: 711188
I have a collection of Latex files for a draft of a textbook. I was
working on windows and unix, and now my boss needs to compile them on
a Mac. The problem is that the DOS text format is incompatible with
macs, so I need to change or remove all my carriage returns and line
feeds in these text files (containing Latex text and code). I have
found software that converts from windows/dos to unix/mac text
formats, but they tend to be simple console-based applications whp's
main inconvenience is that theyr equire you to do the conversaion in a
console file by file, and that would take a lot of work and time. Is
there easier to use software, perhaps GUI-based, that can convert my
files all in one go (in batch maybe)?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Text file format conversions DOS.unix/mac , line end characters
From: commonguy-ga on 10 Apr 2006 19:29 PDT
 
If you load up a FTP Server on your Windows or Macintosh machine to
transfer these files, you should be able to perform this conversion
directly using FTP Transfers.  Simply be sure to transfer the files in
ASCII mode as opposed to BINARY mode.  ASCII mode should make the
appropriate adjustments to line termination characters.
Subject: Re: Text file format conversions DOS.unix/mac , line end characters
From: octavodia-ga on 19 Apr 2006 07:00 PDT
 
There is a little unix one-liner that will do it for you, cd to the
directory where your files are and type:

find . -type f -exec dos2unix --d2m {} \;

If you have access to a Linux box you will probably find command dos2unix installed.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy