Article View: es.comp.os.linux.programacion
Article #9476Re: Ayuda con Shell Script !
From: Dmartin
Date: Thu, 04 Jul 2002 16:44
Date: Thu, 04 Jul 2002 16:44
28 lines
1527 bytes
1527 bytes
> Dmartin wrote:
>
> > Cosas varias....
>
> > �Como puedo leer cada una de las lineas del fichero?
> ter recomiendo awk
> > �Puedo pasar variables entre bash, awk, sed, ...?
> en shell:
> programilla.awk --assign Var=$var
> dentro del awk la variable Var, valdra el valor de la variable $var en
> sh.
> > �Puedo ejecutar un comando bash desde awk?
>
> comando="ls -l / 2>/dev/null"
> while ((comando | getline) > 0)
> {
> print $0
> }
>
> O
> system("ls /" myvarenawk "-la" )
>
> >
> > �Alguna idea?
>
> Espero que esto te sirva.
Muchas gracias por tu ayuda. Ya lo tengo medio solucionado.
Technical Details
Message-ID:
<cc2533a6.0207040844.1d3cbc53@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<cc2533a6.0207032356.7332fce4@posting.google.com> <ag13s1$i6rfv$1@ID-148170.news.dfncis.de>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: f86c8,90d89dc0e61cc9ec X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-07-04 09:44:21 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: dmartin@alumnos.urjc.es (Dmartin) Newsgroups: es.comp.os.linux.programacion Subject: Re: Ayuda con Shell Script ! Date: 4 Jul 2002 09:44:21 -0700 Organization: http://groups.google.com/ Lines: 28 Message-ID: <cc2533a6.0207040844.1d3cbc53@posting.google.com> References: <cc2533a6.0207032356.7332fce4@posting.google.com> <ag13s1$i6rfv$1@ID-148170.news.dfncis.de> NNTP-Posting-Host: 194.69.248.50 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1025801061 16233 127.0.0.1 (4 Jul 2002 16:44:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 4 Jul 2002 16:44:21 GMT