Article View: es.comp.os.linux.programacion
Article #16137Re: Script para llevar la contabilidad domestica
From: Xose Manoel Ramos
Date: Wed, 10 May 2000 00:00
Date: Wed, 10 May 2000 00:00
51 lines
2423 bytes
2423 bytes
El Sun, 7 May 2000 10:44:47 +0200, Santiago Romero dec�a:
> una cosa, para hacer echos gordos de ese tipo habia una cosa que era
> como...
> cat <<
>
> pepito
> Hola
> esto se ve en pantalla
>
>EOF
>
> (o algo asi). �Puede alguien confirmar como era?
cat <<[-] etiqueta
(texto a gogo)
etiqueta
Que pena que no tengas la p�gina de manual del Bash. Ah� viene muy
bien explicado. ;-)
Miento como un bellaco, la mejor p�gina sobre programaci�n de shell
es la del ash (yo aunque uso bash, tengo instalada la documentaci�n
de ash para aprender de verdad):
The following redirection is often called a ``here-docu�
ment''.
[n]<< delimiter
here-doc-text...
delimiter
All the text on successive lines up to the delimiter is
saved away and made available to the command on standard
input, or file descriptor n if it is specified. If the
delimiter as specified on the initial line is quoted, then
the here-doc-text is treated literally, otherwise the text
is subjected to parameter expansion, command substitution,
and arithmetic expansion (as described in the section on
``Expansions''). If the operator is ``<<-'' instead of
``<<'', then leading tabs in the here-doc-text are
stripped.
--
\/ _ _ _ (Vigo/Galicia/Espa�a)
/\(_)_\(/_ xmanoel@i.am
http://i.am/xmanoel/
05/10 Dave Mason is born in Worcester, England, 1945
Technical Details
Message-ID:
<slrn8hh56j.8f.xmanoel@perolo.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8h8kfk.38c.scandisk@localhost.localdomain> <slrn8hab7v.kb.nop@compiler.linux.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,c1e5172522caf03c X-Google-Attributes: gidf86c8,public From: Xose Manoel Ramos <xmanoel@comports.com> Subject: Re: Script para llevar la contabilidad domestica Date: 2000/05/10 Message-ID: <slrn8hh56j.8f.xmanoel@perolo.org> X-Deja-AN: 621514793 Content-Transfer-Encoding: 8bit References: <slrn8h8kfk.38c.scandisk@localhost.localdomain> <slrn8hab7v.kb.nop@compiler.linux.es> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@news.wanadoo.es X-Trace: m2newsread.uni2.es 957956225 62.36.168.116 (Wed, 10 May 2000 12:57:05 MET DST) Organization: Wanadoo Usenet News - Visita http://www.wanadoo.es/ Mime-Version: 1.0 User-Agent: slrn/0.9.5.6 (UNIX) Reply-To: xmanoel@comports.com NNTP-Posting-Date: Wed, 10 May 2000 12:57:05 MET DST Newsgroups: es.comp.os.linux.programacion