Re: Piping sed to sed commands
Re: Piping sed to sed commands
- Subject: Re: Piping sed to sed commands
- From: Michael Terry <email@hidden>
- Date: Sat, 17 Jan 2004 14:34:02 -0800
On Jan 17, 2004, at 2:01 PM, Michael Terry wrote:
perl -ne 'print while
s/<key>(Name|Artist|Album|Genre|Size|Year|Comments)<\/
key><[^>]*>([^<]*)<\/[^>]*>/<td class=\1>\2/g'
I'm going to leave escaping it for applescript as an exercise for the
reader.
It's already got all the escaping it's ever going to need. It's ready
for a 'do shell script'.
Oh, no it doesn't have. I was confused while testing my little quoting
script. So anyway, just copy the Perl line to the clipboard, and the
following script will replace it with the properly quoted form:
try
return & (the clipboard) & return as boolean
on error eMsg
set the clipboard to "\"" & eMsg's paragraph 2 & "\""
end try
Mike
_______________________________________________
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.