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

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

Re: [shell-script] Concatenar 2 variaveis


From: moysespr
Subject: Re: [shell-script] Concatenar 2 variaveis
Date: Thu, 4 Sep 2003 20:20:52 -0700 (PDT)

Ao invés de:     echo "\t\t$arq$c"

tente:      eval 'echo -e "\t\t$'arq$c'"'


--- rstrapasson <address@hidden> wrote:
> Pessoal, preciso de uma ajuda. Como faco para concatenar 2
> variariais 
> e depois ler?
> Segue abaixo o script:
> 
> count=`wc -l tmp2.txt | cut -c8-9`
>                 ok=y
>                 c=0
>                 while [ "$ok" = "y" ]
>                 do
>                         c=`expr $c + 1`
>                         tail -n$c tmp2.txt | cut -c1-16 | read
> arq$c
>                         tail -n$c tmp2.txt | cut -c17-70 | read
> des$c
>                         echo "\t\t$arq$c"
>                         if [ $c = $count ]
>                                 then
>                                 ok=n
>                         fi
>                 done
> 
> preciso ler a $arq1. como faco?
> 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


reply via email to

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