Quote:
Originally Posted by
azurite
Hmm, pardon my lack of knowledge, but does echo and $ in CASE do the same thing?
I am not sure if I understand your question.
Here are some explanations:
$CASE gives the value of the variable
CASE.
echo $CASE prints the value of the variable. The value is evaluated before (for example, a
* character is a wildcard and eventually replaced by matching files in the current directory). Often you don't want that, then put it in quotes:
echo "$CASE".
Instead of printing it with the
echo command, you can cd to it with the
cd command.
Now, the
cd `echo "$CASE"` is complicated: it first does an
echo "$CASE", but because it is in backticks it does not print to the screen but is passed to the
cd command.