Re: UNIX line breaks in an AppleScript created text document
Re: UNIX line breaks in an AppleScript created text document
- Subject: Re: UNIX line breaks in an AppleScript created text document
- From: garbanzito <email@hidden>
- Date: Fri, 22 Feb 2002 12:18:37 -0700
at 2002 02 22, 10:38 -0600, they whom i call Ron Bishop wrote:
it writes the text file it puts in Macintosh line breaks - no surprise...
However, the PHP needs UNIX line breaks to read the text file correctly.
use the tr shell command:
tr '\r' '\n' <old.txt >new.txt
wil translate Mac carriage returns in old.txt into Unix
newlines in new.txt.
--
steve harley email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.