string has to be at least3 charracter
My god!!! I THANK YOU with all my hearth!!!!
i'm soooooo incredibly happy i finnaly got my breakthrue thank you so much
Quote:
Originally Posted by Heraton
Hello dellafaille!
You should use double quoting or even single quoting to make your "functions" strings and then simple catenate them
Code:
#!/bin/bash
opt1="echo 123"
opt2=" > Testfile"
echo "--$opt1----$opt2--"
opt3="$opt1""$opt2"
echo "-$opt3-"
eval "$opt3"
Regards, Heraton
|
Last edited by dellafaille; 06-16-2012 at 05:06 AM.
|