From: Ian Crew (icrew@socrates.berkeley.edu)
Date: Tue Nov 27 2001 - 15:37:17 PST
Have you tried using sed? I believe the syntax would be:
sed -n 's/^M/\r/gw output_file' input_file
(That's totally untested, but should work....)
Ian
> 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/>.
-- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Ian Crew IS&T/Workstation Support Services University of California at Berkeley 297 Evans Hall, (510) 642-7795 icrew@socrates.berkeley.edu------------------------------------------------------------------------ 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/>.
This archive was generated by hypermail 2b29 : Tue Nov 27 2001 - 15:37:53 PST