eval "echo \$VAR"

Category: Shell & Bash

eval "echo \$VAR"

Evaluate a string as a shell command

Evaluates a string as if it were a command you typed. Used to dynamically build and run commands.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.