Re: Shell: put sed script in Applescript - Solved!
Re: Shell: put sed script in Applescript - Solved!
- Subject: Re: Shell: put sed script in Applescript - Solved!
- From: Gnarlodious <email@hidden>
- Date: Tue, 17 Feb 2004 00:33:34 -0700
Entity Gnarlodious spoke thus:
/ A>$/{
$!N;/\n<\/ul>$/{
$!N;s/ A>\(\n<\/ul>\n<li\)/ a><p>\1/;
};
}
The trick (simply) is that all closing "curly braces" must be preceded by a
semicolon ending the preceding line:
do shell script "sed -e '/ A>$/{$!N;/\\n<\\/ul>$/{$!N;s/
A>\\(\\n<\\/ul>\\n<li\\)/ a><p>\\1/;};}'
The actual string sent to the shell can be shown in the output window. This
string exactly matches the script in the external command file.
Thanks to some great guys at comp.unix.shell for explaining it.
-- Gnarlie
getting to love UNIX
_______________________________________________
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.