Re: Replace character with accent by character without accent

From: Chris F.A. Johnson (cfajohnson_at_gmail.com)
Date: 08/30/04


Date: 30 Aug 2004 00:56:10 GMT

On 2004-08-30, .:: Evanescence ::. wrote:
> Hello people.
>
> I have file coming from a system that is in Portuguese, and I need to
> strip it of all characters that have accent.
>
> example:
>
> á -> a
> è -> e
> ç -> ç
>
> you get the idea.
>
> Question: How do I do that with a UNIX shell script?
>
> My shell is the BASH shell. I have some knowledge of how to make shell
> script.

tr 'àáâãäåçèéêëìíîïðñòóôõöøùúûüýþÿ' 'aaaaaaceeeeiiiionoooooouuuuyþy'

-- 
    Chris F.A. Johnson                  http://cfaj.freeshell.org/shell
    ===================================================================
    My code (if any) in this post is copyright 2004, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License


Relevant Pages