• 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: do shell script - quotation marks problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script - quotation marks problem


  • Subject: Re: do shell script - quotation marks problem
  • From: Martin Orpen <email@hidden>
  • Date: Sat, 18 Dec 2004 18:57:28 +0000

on 18/12/04 5:43 pm, Armin Egginger wrote:

> only for example:
> do shell script " grep Volumename | cut -d "  " -fl"

Why are you using quote marks with cut?

If you want to use a space as a delimiter you'd do something like:

    $ echo 'hello world' | cut -d\  -f1
    hello

Noting that there are two spaces after the backslash and adding an
additional backslash to use it in AS:

    do shell script "echo 'hello world' | cut -d\\  -f1"

--
Martin Orpen


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: do shell script - quotation marks problem
      • From: Christopher Nebel <email@hidden>
References: 
 >do shell script - quotation marks problem (From: Armin Egginger <email@hidden>)

  • Prev by Date: Bluetooth file browser window
  • Next by Date: Problem Compiling
  • Previous by thread: Re: do shell script - quotation marks problem
  • Next by thread: Re: do shell script - quotation marks problem
  • Index(es):
    • Date
    • Thread