View previous topic :: View next topic |
Author |
Message |
Cagnulein l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/5525999963f783a78ad59e.gif)
Joined: 18 Sep 2003 Posts: 861 Location: Modena, Italy
|
Posted: Mon Aug 16, 2004 3:55 pm Post subject: [DEVEL] Concatenare string in bash [RISOLTO] |
|
|
Ho un problemino, vorrei concatenare le stringhe in bash ma sui manualic he ho guardato non viene spiegato...
dunque mettiamo il caso di avere
e volessi congiungere per stampare "cagnulein" come potrei fare?
in python avrei fatto:
Code: | ciao = ciao + "lein" |
ma in bash non ho trovato una cosa simile..
Grazie
Last edited by Cagnulein on Mon Aug 16, 2004 4:29 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
morellik l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 03 Feb 2003 Posts: 629 Location: Firenze
|
Posted: Mon Aug 16, 2004 4:25 pm Post subject: |
|
|
Una cosa del tipo
Code: |
a="cagnu"
a=`echo $a"lein"`
oppure
a="cagnu"
a="$a""lein"
|
Ciauz
morellik |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Cagnulein l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/5525999963f783a78ad59e.gif)
Joined: 18 Sep 2003 Posts: 861 Location: Modena, Italy
|
Posted: Mon Aug 16, 2004 4:29 pm Post subject: |
|
|
perfetto ti ringrazio ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
FonderiaDigitale Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/160661570245a62657b3321.jpg)
Joined: 06 Nov 2003 Posts: 1710 Location: Rome, Italy
|
Posted: Mon Aug 16, 2004 8:07 pm Post subject: |
|
|
morellik wrote: |
a="cagnu"
a="$a""lein"
[/code]
|
il modo piu corretto sarebbe
_________________ Come disse un amico, i sistemisti sono un po' come gli artigiani per l'informatica
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|