Shell Programming/eval command

< Shell Programming

The eval command is like an extra $ in shell scripting. It evaluates a string and attempts to expand it as a variable. For example the following evaluates the string as $horse and expands the value of variable horse.

  eval $"horse"