Re: Sorting? [sorted]
Re: Sorting? [sorted]
- Subject: Re: Sorting? [sorted]
- From: Reinhold Penner <email@hidden>
- Date: Fri, 13 Sep 2002 08:31:02 -1000
On Friday, Sep 13, 2002, at 08:12 Pacific/Honolulu, has wrote:
do shell script "perl -e '
for (split /\\r/, \"" & s & "\") {/(.+?)(\\d+$)/ ;
push @_, $1. sprintf \"d$/\", $2}
for (sort @_) {s~0+(\\d+)$~$1~ ; print }'"
JD speaks; AppleScript surrenders.
I just wish, JD would adopt pipes instead of escaping all the
slashes... It would make it so much easier to read.
-Reinhold
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.