• 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: Q: echo | sed -- Solved!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Q: echo | sed -- Solved!


  • Subject: Re: Q: echo | sed -- Solved!
  • From: Gnarlodious <email@hidden>
  • Date: Tue, 18 May 2004 07:50:59 -0600

Entity Paul Berkowitz spoke thus:

> You quite sure that it doesn't involve the fact that within strings carriage
> returns typed in Script Debugger are /r (ASCII 13) whereas carriage returns
> typed in Script Editor 2.0 are /n (ASCII 10) as preferred by Unix commands?
> Just replace the <return> between lines (in SD) with a line feed to check.

If that were the case, one might think the linespanning format
sed '/2/,/5/d'

would work the same as the the linewise format:
sed 's/2/8/'

It seems like in this case, ScriptDebugger demands the quoted text be
translated to \n for the prior command. Same with Entourage text. The latter
command doesn't care.

I'm sending a bug report even though this may be a shell issue.

-- Gnarlie
_______________________________________________
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.


  • Follow-Ups:
    • Re: Q: echo | sed -- Solved!
      • From: Nigel Smith <email@hidden>
References: 
 >Re: Q: echo | sed -- Solved! (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: URL Access Scripting- File Naming Problems
  • Next by Date: Print to PDF
  • Previous by thread: Re: Q: echo | sed -- Solved!
  • Next by thread: Re: Q: echo | sed -- Solved!
  • Index(es):
    • Date
    • Thread