View Single Post
Old 12-12-2005, 07:58 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,446
sde is on a distinguished road
shell script variable

i have a shell script where i send in a path, and then i need to append it.
Code:
mypath="/mydir/$1"
./mycommand $mypathadmin
./myshellscript /home/sde/

so basically i want the following command to run

./mycommand /home/sde/admin

but, .. my script doesn't work. how do i append a variable in a shell script? i've tried $mypath+"admin" , but that puts the + sign in there.

did that make sense?
sde is offline   Reply With Quote