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?