Re: Working with big lists
Re: Working with big lists
- Subject: Re: Working with big lists
- From: Daniel Jalkut <email@hidden>
- Date: Sun, 22 May 2005 13:04:38 -0700
Hi Rob - this output is almost identical in format to the results of the "uniq" shell tool.
Play around with the results of this script:
set theResult to "" set theFile to choose file set theContents to every paragraph of (do shell script "cat " & quoted form of (POSIX path of theFile)) set countInfo to do shell script "uniq -c " & quoted form of (POSIX path of theFile)
The tool has been around so long I imagine it's probably pretty efficient.
Daniel
On May 22, 2005, at 11:58 AM, Rob Stott wrote: I want to be able to read it and get;
apple 3 orange 2 pear 1
|
_______________________________________________
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