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

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

Re: [shell-script] Substituição de variaveis


From: Fabricio
Subject: Re: [shell-script] Substituição de variaveis
Date: Thu, 01 Sep 2005 10:35:17 -0300
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

moysespr wrote:


Seria isso?
---
soma(){ echo exec fun $FUNCNAME;eval ${1}_total=$[2+3];}
show(){ echo "grep set$1: `set|grep ^credito_total`";}

unset credito_total
show 1
soma credito
show 2
---




foi soh usar eval que funcionou :) obrigado


reply via email to

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