• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UNIX line breaks in an AppleScript created text document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >UNIX line breaks in an AppleScript created text document (From: Ron Bishop <email@hidden>)

  • Prev by Date: Re: Bug in OS 9.2.1/2 S 1.6-1.8.2b? (also: Set t to true as boolean)
  • Next by Date: Re: UNIX line breaks in an AppleScript created text document
  • Previous by thread: Re: UNIX line breaks in an AppleScript created text document
  • Next by thread: Re: UNIX line breaks in an AppleScript created text document
  • Index(es):
    • Date
    • Thread