• 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
Sed replace oneline nogo in Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sed replace oneline nogo in Applescript


  • Subject: Sed replace oneline nogo in Applescript
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 09 Feb 2004 23:03:31 -0700

The bugaboo is the "2" specifying the line number:

sed -e '2s|<H3>\\(.*\\)<\\/H3>|<h3><a href=\"\\.\\/\">\\1</a></h3>|'

Works in Terminal but not Applescript. If I remove the "2" it operates on
all lines in the file.

What am I doing wrong?

-- 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: Sed replace oneline nogo in Applescript
      • From: BJ Terry <email@hidden>
  • Prev by Date: Re: Scripting Additions Calls in Tell Blocks
  • Next by Date: Re: Scripting Additions Calls in Tell Blocks
  • Previous by thread: Re: Make Alias
  • Next by thread: Re: Sed replace oneline nogo in Applescript
  • Index(es):
    • Date
    • Thread