🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.misc
Article #35599

Re: Arreglar acentos en Unix

#35599
From: B. Javier S.
Date: Tue, 30 Dec 1997 00:00
27 lines
1679 bytes
Rodrigo Soto <rsoto@cec.uchile.cl> wrote:
>Hola,
>Necesito un script para Unix que me permita arreglar los acentos de la
>forma 'e a � (en acento sobre la letra) y tanbien la enhe de 'n a �. El
>script debiera recibir desde el STDIN y tirar el resultado al STDOUT
>pues me interesa pipearlo.

	Esta consulta deberia ir a chile.comp.unix...

	Puedes reemplazar texto en forma no interactiva con el comando
"sed", cuya sintaxis es similar a la sustitucion del vi.

sed -e 's/<a sustituir>/<lo que sustituye>/g' < infile > outfile

	Por ejemplo, para reemplazar la frase "hola" por "chao" en el
archivo "in.txt" y guardar el resultado en el archivo "out.txt", escribes lo
siguiente:

sed -e 's/hola/chao/g' < in.txt > out.txt

Saludos!

-- 
B. Javier Siu F.  (javier@webhost.cl)
Disclaimer: Mis opiniones son PERSONALES y no representan a nadie mas.
********* This .sig is shareware. NO WARRANTY, use at your own risk ********
Technical Details
Message-ID: <68b5br$2l2$1@antonia.webhost.cl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34A92CB4.28B2@cec.uchile.cl>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 143321,a89f92c8dff1d87b
X-Google-Attributes: gid143321,public
X-Google-Thread: 107d6b,a89f92c8dff1d87b
X-Google-Attributes: gid107d6b,public
From: "B. Javier S." <javier@antonia.webhost.cl>
Subject: Re: Arreglar acentos en Unix
Date: 1997/12/30
Message-ID: <68b5br$2l2$1@antonia.webhost.cl>
X-Deja-AN: 311388940
Content-Transfer-Encoding: 8bit
Sender: B. Javier S. <javier@antonia.webhost.cl>
References: <34A92CB4.28B2@cec.uchile.cl>
Followup-To: chile.comp.unix,uch.ing.consultas
Content-Type: text/plain; charset=iso-8859-1
Organization: Yo mismo y NADIE MAS
Mime-Version: 1.0
Reply-To: bsiu@ing.puc.cl
Newsgroups: chile.comp.misc,uch.ing.consultas