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

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

Re: [shell-script] leitura de arquivo - linhas como param p/ cmd


From: Herbert Parentes Fortes Neto
Subject: Re: [shell-script] leitura de arquivo - linhas como param p/ cmd
Date: Wed, 26 Nov 2014 10:17:47 -0200

On Tue, 25 Nov 2014 11:25:50 -0200
"Fredi Rolf Bieging address@hidden [shell-script]" <address@hidden> wrote:

> Substitua essas linhas:
> companhia=$(echo "$Line" | cut -d " " -f2) # -d TAB
> op=$(echo "$Line" | cut -d " " -f3) # -d TAB
> 
> Por:
> companhia=$(cut -f2 <<< "$Line")
> op=$(cut -f3 <<< "$Line")
> 
> O tab é o delimitador padrão do cut. Não precisa especificá-lo.
> 

boa observação. 

obrigado.


-- 
Herbert Parentes Fortes Neto (hpfn)


reply via email to

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