I have 4 shell variables set
remote_account="raccname"
remote_machine="server"
First_Name="firstname"
Last_Name="lastname"
when I call remote_account
or remote_machine
in my script they get used fine
echo "What directory shall you choose?"
read dir
scp -r ~/csc60/$dir $remote_account@$remote_machine:directoryA
exit;;
but when I call the other two as such
echo "What directory shall you choose?"
read dir
scp $remote_account@$remote_machine:tars/$Last_Name_$First_Name_$dir.tar.z ~/tars
exit;;
it grabs the tars file from tars/$dir.tar.z
completely skipping $Last_Name_$First_Name_
when I throw an echo $Last_Name
in it still shows it as "lastname"
Is there some rule using "_" between variables or something, or am I just missing something obvious?