Using variables in command linePosted: July 3, 2013
So as not to retype a parameter which shall appear in several places in your command at the command line, you can first define it as a variable and then reuse it as many times as you want. Like this (for the bash shell anyway):
myvariable=something echo $myvariable; echo This is $myvariable !
Please note that there are no spaces to the either side of the equals sign.