Re: Selecting Last X Lines of Shell Script Result
Re: Selecting Last X Lines of Shell Script Result
- Subject: Re: Selecting Last X Lines of Shell Script Result
- From: Craig Williams <email@hidden>
- Date: Mon, 26 May 2008 14:12:19 -0600
On May 26, 2008, at 2:01 PM, Marconi wrote:
I have a number of applescripts that just run a shell script.
Typically, I get the result like this:
set my_Message to (do shell script "ls -l /Applications")
display dialog my_Message
set x to do shell script "ls -l ~/Desktop | tail -2"
Pipe it to "tail"
The above will only give the last 2 items in the list.
Regards,
Craig
_______________________________________________
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