On Fri, Feb 06, 2004 at 04:47:07PM -0500, Antonio Rodriguez wrote:
> sed -e 's/\\'a/�/g' -e 's/\\'e/�/g' -e 's/\\'{\\i}/�/g' -e 's/\\'o/�/g' -e 
> 's/\\'u/�/g' -e 's/\\'A/�/g' -e 's/\\'E/�/g' -e 's/\\'{\\I}/�/g' -e 's/\\'O/�/g' -e 
> 's/\\'U/�/g' -e 's/\\~n/�/g' -e 's/\\~N/�/g' -e 's/\\"u/�/g' -e 's/\\"U/�/g' -e 
> 's/?`/�/g' -e 's/!`/�/g' $archivo-copia > $archivo-out

You're trying to put single quotes inside single quotes, which won't
work. Also, \ doesn't need to be doubled inside single quotes: every
character inside '' apart from ' itself is interpreted literally.

The first sed expression should read like this:

  's/\'\''s/�/g'

You write ' as '\'' because what you're doing is leaving the quotes,
inserting just one ' character with \', and then re-entering the quotes.

HTH,

-- 
Colin Watson                                  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to