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

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


  • Subject: How to convert "space" to "\space" for shell script
  • From: "Patrik B." <email@hidden>
  • Date: Sat, 3 Feb 2007 18:17:58 -0800

Hi,

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"

Best, Patrik
 _______________________________________________
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

  • Follow-Ups:
    • Re: How to convert "space" to "\space" for shell script
      • From: Bill Hernandez <email@hidden>
    • Re: How to convert "space" to "\space" for shell script
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Getting the location of mailboxes from mail/Eudora
  • Next by Date: Re: How to convert "space" to "\space" for shell script
  • Previous by thread: Mounting server volumes
  • Next by thread: Re: How to convert "space" to "\space" for shell script
  • Index(es):
    • Date
    • Thread