Re: [MAGNet] OSX text file line break conversion -- s/^M/\r/g

Date view Thread view Subject view Author view

From: Ghaouar Camij Toschian (gct@pasteur.EECS.Berkeley.EDU)
Date: Tue Nov 27 2001 - 10:28:43 PST


You can use an emacs macro to do that, if all the files are in 1 directory,
that makes it easier.

Thank you very much.
If you have any questions, please don't hesitate to contact me.
 Thanks, G Camij Toschian,
gct@cory.eecs.berkeley.edu, EECS Instructional & Electronics Support Group
 / 386 Cory Hall / 510 643-6138

Greg Merritt wrote:
>
> I'm sending data files between FileMaker databases and perl
> scripts on an OSX machine. FileMaker dumps data with Macintosh line
> breaks, but perl likes Unix-style line breaks.
>
> Does anybody know of a command-line utility or script to
> convert Macintosh line breaks to Unix line breaks? I'm currently
> using BBEdit "by hand" to open the file and change & save formats,
> but would prefer to have my script do this for me (call me lazy).
>
> -Greg Merritt
> Institute of Transportation Studies
>
> ------------------------------------------------------------------------
> The following was automatically added to this message by the list server:
>
> For information about MAGNet, its meetings and events, and its
> mailing list, including information on subscribing and unsubscribing,
> see the MAGNet Web site at <http://mac.berkeley.edu/help/magnet/>.

------------------------------------------------------------------------
The following was automatically added to this message by the list server:

For information about MAGNet, its meetings and events, and its
mailing list, including information on subscribing and unsubscribing,
see the MAGNet Web site at <http://mac.berkeley.edu/help/magnet/>.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Nov 27 2001 - 11:21:23 PST