Article View: es.comp.os.linux.programacion
Article #9482Re: for linea in 'cat fichero'.¿ como saco el caracter ' ?
From: Fernando Arbeiza
Date: Fri, 05 Jul 2002 08:33
Date: Fri, 05 Jul 2002 08:33
26 lines
1830 bytes
1830 bytes
Hola:
On Fri, 5 Jul 2002 10:01:24 +0200, Biorja <sistemasQuitar@EstOserina.es> wrote:
> for linea in 'cat fichero'.
>
> Pero el caracter " ' " no me sirve es otro.
>
> � como saco el caracter ' ?
>
> Nota.: Tengo configurado el teclado espa�ol y todo me sale bien menos eso
Bueno, si el shell es bash, yo prefiero utilizar el $(), es decir:
for linea in $(cat fichero)
con el que no hay ninguna duda con los caracteres esos. Si de toda forma
quieres utilizarlos, el car�cter no es el acento normal ' (como en �), sino el
invertido ` (f�jate hacia d�nde apunta, �). Lo podr�s encontrar encima
del acento normal.
Un saludo.
--
Fernando Arbeiza
arbeizaf [arroba(at)] ono [punto(dot)] com
LFS en castellano: http://www.escomposlinux.org/lfs-es
Technical Details
Message-ID:
<slrnaiamfb.fc.direccion_en_la_firma.address_in_signature@jupiter.olimpo>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!62.42.160.107!not-for-mailReferences:
<ag3jae$a8e$1@nsnmrro2-gest.nuria.telefonica-data.net>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,9cd788ed0c39d920 X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-07-05 01:38:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!62.42.160.107!not-for-mail From: Fernando Arbeiza <direccion_en_la_firma.address_in_signature@homelinux.org> Newsgroups: es.comp.os.linux.programacion Subject: Re: for linea in 'cat fichero'.¿ como saco el caracter ' ? Date: Fri, 5 Jul 2002 10:33:47 +0200 Lines: 26 Message-ID: <slrnaiamfb.fc.direccion_en_la_firma.address_in_signature@jupiter.olimpo> References: <ag3jae$a8e$1@nsnmrro2-gest.nuria.telefonica-data.net> NNTP-Posting-Host: 62.42.160.107 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 1025858291 19511246 62.42.160.107 (16 [148301]) X-Orig-Path: localhost.localdomain!nobody User-Agent: slrn/0.9.7.4 (Linux)