sed replacement headscratcher
sed replacement headscratcher
- Subject: sed replacement headscratcher
- From: Gnarlodious <email@hidden>
- Date: Sat, 06 Mar 2004 00:23:54 -0700
set someChars to " & ' "
--when I say
set someChars to do shell script "echo " & the quoted form of someChars & "|
sed " & quoted form of "s|&|\\\\&|"
-- I get the desired substitution -> \&
-- but
set someChars to do shell script "echo " & the quoted form of someChars & "|
sed " & quoted form of "s|'|\\\\‹|"
-- gets me -> \'#139;
???
-- Gnarlie
_______________________________________________
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.