• 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: How to convert "space" to "\space" for shell script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert "space" to "\space" for shell script


  • Subject: Re: How to convert "space" to "\space" for shell script
  • From: Bill Hernandez <email@hidden>
  • Date: Sun, 4 Feb 2007 00:48:19 -0600


On Feb 3, 2007, at 8:17 PM, Patrik B. wrote:

I am working on a shell script and need to convert a posix path with spaces
properly from " " to "\ ". Is there an available handler or command that
already converts this on the fly?
If not what is the simplest method to convert for example


"This is my example.pdf" to "This\ is\ my\ example.pdf"


Patrik,

set str to "This is my example.pdf"
set qf_str to quoted form of str

Best Regards,

Bill Hernandez
Plano, Texas
_______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >How to convert "space" to "\space" for shell script (From: "Patrik B." <email@hidden>)

  • Prev by Date: Re: Getting the location of mailboxes from mail/Eudora
  • Next by Date: Capturing the "Return-Path" header information as text in Apple Mail?
  • Previous by thread: Re: How to convert "space" to "\space" for shell script
  • Next by thread: Re: How to convert "space" to "\space" for shell script
  • Index(es):
    • Date
    • Thread