Re: Search for a character
Re: Search for a character
- Subject: Re: Search for a character
- From: "Timothy K. Wilkinson" <email@hidden>
- Date: Mon, 19 Sep 2005 15:24:04 -0400
Martin.
Your code works wonderfully in Terminal but it won't compile on any of my
Macs in Script Editor. All choke on the % sign and give the same error:
Syntax error
Expected """ but found unknown token
Any thoughts on why? It looks to me like the % is escaped correctly and all
the quotes line up.
Thanks!
Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
> From: Martin Orpen <email@hidden>
> Date: Mon, 19 Sep 2005 18:49:13 +0100
> To: "email@hidden"
> <email@hidden>
> Subject: Re: Search for a character
>
> On 19 Sep 2005, at 18:25, pete boardman wrote:
>
>> df -h / | grep '%' | cut -f 16 -d ' '
>
> That doesn't work for me, but this does:
>
> df -h / | awk '/\%/ { print $5 }'
>
> And can easily be modified to grab any other columns by changing the
> $ value.
>
> Regards
>
> --
> 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