🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

RE: DUDA SHELL SCRIPT

#9950
From: unlocked
Date: Fri, 12 Apr 2002 12:17
29 lines
1777 bytes
Otra opci�n para la que ha dicho Roberto (que es muy valida) es la
siguiente:

cat $fichero_lineas | while read linea
do
    echo "$linea" >$algunlado
done

Salu2.


Javicho <javicho@enfrente.de.ordenador> escribi� en el mensaje de noticias
3cb6b041@news.upm.es...
>
> Hola, alguien me podria decir si se puede ( imagino que si) como seria un
> script que hiciera esto:
>
> Dado un fichero de texto, lee una linea y la guarda en algun lado,
> lee otra linea, y asi hasta el final.
>
> He conseguido leer de un fichero con `cat fichero` pero me lee todas las
> lineas a la vez
>
> Gracias
>
>
> --
> jdiego@grpss.ssr.upm.es
>
Technical Details
Message-ID: <2fAt8.749513$EH2.2940863@telenews.teleline.es>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213-98-107-123.uc.nombres.ttd.ES!not-for-mail
References: <3cb6b041@news.upm.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,650490a3294f00d1
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-04-15 07:45:27 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!213-98-107-123.uc.nombres.ttd.ES!not-for-mail
From: "unlocked" <dpolo7@hotmail.com>
Newsgroups: es.comp.os.linux.programacion
Subject: RE: DUDA SHELL SCRIPT
Date: Fri, 12 Apr 2002 12:17:02 GMT
Organization: Terra Networks
Lines: 31
Message-ID: <2fAt8.749513$EH2.2940863@telenews.teleline.es>
References: <3cb6b041@news.upm.es>
Reply-To: "unlocked" <dpolo7@hotmail.com>
NNTP-Posting-Host: 213-98-107-123.uc.nombres.ttd.es (213.98.107.123)
X-Trace: fu-berlin.de 1018881925 2770759 213.98.107.123 (16 [64988])
X-Orig-Path: antonio.escomposlinux.org!julieta.escomposlinux.org!helvete!telenews.teleline.es!not-for-mail
X-Trace-PostClient-IP: 217.11.98.70
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300