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

Date view Thread view Subject view Author view

From: Greg Merritt (gmerritt@uclink.berkeley.edu)
Date: Tue Nov 27 2001 - 10:16:23 PST


        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/>.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Nov 27 2001 - 10:18:31 PST