Article View: es.comp.os.linux.programacion
Article #16159Re: Generar un número con el Bash
From: Esteban
Date: Fri, 05 May 2000 00:00
Date: Fri, 05 May 2000 00:00
42 lines
1679 bytes
1679 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 J.A. Gutierrez <spd@daphne.cps.unizar.es> escribi�: >#!/bin/bash ># or /bin/ksh but not /bin/sh > >typeset -i num > >IFS="," > >let total=0 > >grep -i Hipercor file |(\ >while read foo bar num >do > echo "$num" > let total=$total+$num >done > >echo $total > >) Pues ya tengo el cutre-programa acabado. Muchas 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 iD8DBQE5Ezsja3aqF90Ua+oRAigqAJ9T4Byk1tvyhlfPxio2aPaZeFt83gCgpXM1 6pEJTEtyjbkHxhsIVPFXlyQ= =SesC -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<slrn8h6ep5.49s.scandisk@localhost.localdomain>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<slrn8h372p.1cf.scandisk@localhost.localdomain> <8esjh4$7f4$1@news.unizar.es> <slrn8h3so7.1s2.scandisk@localhost.localdomain> <8eu88s$5ip$1@news.unizar.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,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: <slrn8h6ep5.49s.scandisk@localhost.localdomain> X-Deja-AN: 619795247 Content-Transfer-Encoding: 8bit References: <slrn8h372p.1cf.scandisk@localhost.localdomain> <8esjh4$7f4$1@news.unizar.es> <slrn8h3so7.1s2.scandisk@localhost.localdomain> <8eu88s$5ip$1@news.unizar.es> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@news.wanadoo.es X-Trace: m2newsread.uni2.es 957570678 212.25.134.171 (Sat, 06 May 2000 01:51:18 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: Sat, 06 May 2000 01:51:18 MET DST Newsgroups: es.comp.os.linux.programacion