🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Generar un número con el Bash

#16154
From: Esteban
Date: Fri, 05 May 2000 00:00
43 lines
1794 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Manuel L�pez Moreno <luname@linuxfan.com> escribi�:

>O, incluso, escribir el script-awk en un archivo aparte y
>utilizarlo desde un script-shell puro:
>
>[suma.awk]
>	BEGIN {s = 0}
>	/Hipercor/ {s += $4}
>	END {print "Total: ", s}
>
>[suma.sh]
>	#!/bin/sh
>
>	bla-bla-bla
>
>	awk -F',' -f suma.awk < datos.dat

>Otra cosa que deber�as saber es, que puedes transferir variables
>desde el script-shell al script-awk.

>... perdona por insistir en lo del awk :-)))

No, haces bien en insistir. Lo que pasa es que prefiero aprenderme bien el bash
y as� luego poder pasar a awk p perl. Acabo de empezar.

Gracias.

- -- 
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

iD8DBQE5Evu9a3aqF90Ua+oRAlreAJ0aBkcTAG0JEreWKs2PnNk6w28gCACdF5gj
T2PAd1iMqOl+i/PZhQZEVkA=
=UY8Y
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <slrn8h5utu.2h2.scandisk@localhost.localdomain>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8h372p.1cf.scandisk@localhost.localdomain> <8esjh4$7f4$1@news.unizar.es> <slrn8h3so7.1s2.scandisk@localhost.localdomain> <slrn8h4ir7.10v.luname@mantium.luname.net>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,5491e17dfd7524bc
X-Google-Attributes: gidf86c8,public
From: scandisk@ctv.es (Esteban)
Subject: Re: Generar un número con el Bash
Date: 2000/05/05
Message-ID: <slrn8h5utu.2h2.scandisk@localhost.localdomain>
X-Deja-AN: 619677802
Content-Transfer-Encoding: 8bit
References: <slrn8h372p.1cf.scandisk@localhost.localdomain> <8esjh4$7f4$1@news.unizar.es> <slrn8h3so7.1s2.scandisk@localhost.localdomain> <slrn8h4ir7.10v.luname@mantium.luname.net>
Content-Type: text/plain; charset=iso-8859-1
Organization: Yo Mismo
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Reply-To: scandisk@ctv.es
Newsgroups: es.comp.os.linux.programacion