- Use single quotes around literal strings (for special character) and double around variables, so
echo "$test"
.
- Don't use backticks, use
$()
.
Bash File NameSplit Bash StringCRTDIR=`pwd` ...Do Something cd $CRTDIR
echo "$test"
.$()
.Bash File NameSplit Bash StringCRTDIR=`pwd` ...Do Something cd $CRTDIR