🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16073

Re: Script para llevar la contabilidad domestica

#16073
From: Esteban
Date: Thu, 11 May 2000 00:00
33 lines
1702 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xose Manoel Ramos <xmanoel@comports.com> escribi�:
>El Sun, 7 May 2000 10:44:47 +0200, Santiago Romero dec�a:

�C�mo se puede asignar una variable en bash a la lectura de un fichero de texto?

Por ejemplo.

El el fichero: prueba1 tengo la palabra "hola".
y en el fichero: prueba2 tengo la palabra "yo"

Se puede hacer algo del estilo:

read ~/prueba1 = $1
read ~/prueba2   = $2

echo " $1 $2"

- -- 
Esteban Navarro (User Linux 132409)
Fondos Escritorio: http://www.ctv.es/USERS/scandisk
Clave P�blica E-Mail asunto: PGPKEY

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE5Gc/Ja3aqF90Ua+oRAtmVAJ4+51rbqb+WNurg/b4VB1BnDdDvjACffELx
PcN1sl6mmM0ASmk2czspiMk=
=tpTP
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn8hjjub.380.scandisk@localhost.localdomain>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8h8kfk.38c.scandisk@localhost.localdomain> <slrn8hab7v.kb.nop@compiler.linux.es> <slrn8hh56j.8f.xmanoel@perolo.org>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,c1e5172522caf03c
X-Google-Attributes: gidf86c8,public
From: scandisk@ctv.es (Esteban)
Subject: Re: Script para llevar la contabilidad domestica
Date: 2000/05/11
Message-ID: <slrn8hjjub.380.scandisk@localhost.localdomain>
X-Deja-AN: 621820377
Content-Transfer-Encoding: 8bit
References: <slrn8h8kfk.38c.scandisk@localhost.localdomain> <slrn8hab7v.kb.nop@compiler.linux.es> <slrn8hh56j.8f.xmanoel@perolo.org>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@news.wanadoo.es
X-Trace: m2newsread.uni2.es 958006567 212.25.130.30 (Thu, 11 May 2000 02:56:07 MET DST)
Organization: CTV-JET@Uni2
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: scandisk@ctv.es
NNTP-Posting-Date: Thu, 11 May 2000 02:56:07 MET DST
Newsgroups: es.comp.os.linux.programacion