• 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: Japanese backslash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese backslash


  • Subject: Re: Japanese backslash
  • From: "Steven D. Majewski" <email@hidden>
  • Date: Mon, 23 Apr 2007 12:05:28 -0400


On Apr 22, 2007, at 7:17 PM, email@hidden wrote:

Admittedly a bit confusing example. I need that particular sequence to
run a shell script:

"sed -e 's/<key>Title<\/key>//g'"

But it doesn't matter. I need the backslash for other purposes as well.


Don't know how to fix it for "other purposes" (but it sounds like you've figured it out) but, for sed, it's a lot simpler to use something other than a slash as the separator character, then you don't need to escape the slash. Example:

  sed -e 's%<key>Title</key>%%g'


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Japanese backslash
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Re: Japanese backslash (From: email@hidden)

  • Prev by Date: Re: Japanese backslash [SOLVED]
  • Next by Date: Re: Japanese backslash
  • Previous by thread: Re: Japanese backslash
  • Next by thread: Re: Japanese backslash
  • Index(es):
    • Date
    • Thread