🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: array linea por linea en bash

#12858
From: J.A. Gutierrez
Date: Tue, 08 May 2001 11:59
24 lines
1794 bytes
Jesus M. NAVARRO <jesus_navarro@geocities.com> wrote:
:> 
:> Tengo que procesar la salida de un comando que devuelve varias l�neas. 
:> Despu�s tengo que procesar l�nea por l�nea la salida.
:> 

: # VEMOS QU� FAXES TENEMOS PENDIENTES
: 	$FAXQ -s | while read LINEA; do
: 		FAX=`echo $LINEA | cut -d"/" -f1`
: 		TELEFONO=`echo $LINEA | cut -d" " -f8`

	si "$FAXQ -s" genera lineas con numero de campor fijo
	puedes hacerlo mejor tal que asin:

	$FAXQ -s | while read FAX dummy1 dummy2 TELEFONO rest
	do
		...


-- 
PGP and other useless info at      \
http://www.cps.unizar.es/~spd/      \
finger://daphne.cps.unizar.es/spd    \       Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/          \                         (Virgilio)   
Technical Details
Message-ID: <9d8n2m$dkp$2@news.unizar.es>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mail
References: <3AF65EBA.6070107@geocities.com> <3AF6B703.7050609@geocities.com>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,4b8bb8f14bbaee88
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2001-05-08 04:39:29 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!jussieu.fr!news.rediris.es!news.unizar.es!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: array linea por linea en bash
Date: 8 May 2001 11:59:18 GMT
Organization: Rank
Lines: 24
Message-ID: <9d8n2m$dkp$2@news.unizar.es>
References: <3AF65EBA.6070107@geocities.com> <3AF6B703.7050609@geocities.com>
NNTP-Posting-Host: daphne.cps.unizar.es
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.unizar.es 989323158 13977 155.210.152.20 (8 May 2001 11:59:18 GMT)
X-Complaints-To: usenet@news.unizar.es
NNTP-Posting-Date: 8 May 2001 11:59:18 GMT
User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX/6.2 (IP22))