Last modified on 30 November 2010, at 02:58

Shell Programming/eval command

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"