shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] Dúvida com awk


From: jimmy
Subject: Re: [shell-script] Dúvida com awk
Date: Fri, 3 Oct 2008 17:07:52 -0300
User-agent: Mutt/1.4.2.3i

On Fri, Oct 03, 2008 at 04:48:27PM -0300, Bruno Gunter Fricke wrote:
> Algo assim?
> 
> $ for ((i=1; i<=2; i++)); do echo lala |awk '{print "sou o awk"}';
> done 

awk 'BEGIN{ for (i=0; i<=2; i++ ){ msg=i"\tawk"; print msg}}'

> 
> 
> -  
> Atenciosamente,
> Bruno Gunter Fricke
> 
> 
> On Fri, 2008-10-03 at 16:10 -0300, Tiago Barcellos Peczenyj wrote:
> > assim?
> > 
> > for(...) { comando1; comando2 ; }
> > 
> > 2008/10/3 Humberto Cruz <address@hidden>:
> > > pessoal, como eu faço para colocar dois ou mais comandos dentro de
> > um
> > > "FOR" no awk ?
> > >
> > > []s
> > > Humberto
> > >
> > > 2008/9/30 Victor Hugo Leite <address@hidden>:
> > >> Obrigado Fabiano, deu certo.
> > >>
> > >
> > > 
> > 
> > -- 
> > Tiago B Peczenyj
> > Linux User #405772
> > 
> > http://peczenyj.blogspot.com/
> > "what does not kill us makes us stronger"
> > 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]