[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] print com awk
From: |
MrBiTs |
Subject: |
Re: [shell-script] print com awk |
Date: |
Thu, 06 Oct 2005 13:06:45 -0300 |
User-agent: |
Mozilla Thunderbird 1.0.6 (X11/20050716) |
> tudo bem, pode ser de alguma outra forma, porém os campos estão em um
> arquivo que nos é entregue formatado.
Então, a forma já está dada: supondo-se que $NUMERO seja nossa variável,
faça
$ echo ${NUMERO:0:2}
--
"There is still more Unix-nature in one
line of shell script than there is in
ten thousand lines of C"
Master Foo - Hsh-bng Province - 530 BC
"Programar Shell Script é a coisa mais
gostosa que você pode fazer vestido"
Mestre J. C. Neves - 10/08/2005
\\|||//
(.) (.)
----ooOO--( )--OOoo-----
MrBiTs
http://www.mrbits.com.br
address@hidden
------------------------