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

Date view Thread view Subject view Author view

From: Daniel Lorca (lorca@uclink.berkeley.edu)
Date: Tue Nov 27 2001 - 15:21:38 PST


hey folks,

I suggest you test drive Pepper (currently at version 3.6.6b) from
www.hekkelman.com. Its a nifty little shareware text editor that
will let you do file modification (find/replace) on batches of files
(you can specify open windows, file names, recursive directories,
include files). Carbon, so it works in 9 & X, and a nice $40 price
that won't break the bank. About 1.5 Mb in size. Plus, all the
other nice features a good text editor should have, including grep
style searches...

cheers,
dan.

At 2:35 PM -0800 11/27/01, Tom Holub wrote:
>On Tue, Nov 27, 2001 at 10:16:23AM -0800, 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.
>
>perl's pretty flexible actually. You can set the $/ variable
>($INPUT_RECORD_SEPARATOR) to whatever you want, or you could have perl
>do the substitution itself.
>
>tr is probably the most popular linebreak-fixing command-line tool.
>
>--
>Tom Holub (tom_holub@LS.Berkeley.EDU, 510-642-9069)
>College of Letters & Science
>249 Campbell Hall
>
>------------------------------------------------------------------------
>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/>.

-- 
Dan Lorca
WSS - DOCS - Mac
lorca@uclink.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/>.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Nov 27 2001 - 15:24:50 PST