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

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

Re: [shell-script] Adicionar String a Variavel


From: thiagomz
Subject: Re: [shell-script] Adicionar String a Variavel
Date: Wed, 24 Sep 2008 14:03:20 -0300
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

thiagomz escreveu:
Pessoal,

Seguinte... tenho uma variavel e preciso adicionar uma string a ela

Exemplo

BASE=/opt


Consegui, só para ficar documentado, não sei se é a melhor forma mas funcionou.

#!/bin/bash
opt=/tmp
x="${opt}w"
echo $x

sev-did-01:~/scripts $ bash tmp
/tmpw



reply via email to

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