Evaluate several commands/arguments
Syntax eval [arguments]
The arguments are concatenated together into a single command, which is then read and executed, and its exit status returned as the exit status of eval
.
If there are no arguments or only empty arguments, the return status is zero.
This is a BASH shell builtin, to display your local syntax from the bash prompt type: help [e]val
“If you get to the edge of the penalty area with the ball and don’t know what to do next, just stick the ball in the net for now. We can evaluate the other options later” ~ Bill Shankley
case - Conditionally perform a command.
expr - Evaluate expressions.
for - Expand words, and execute commands.
gawk - Find and Replace text within file(s).
test - Evaluate a conditional expression.
Equivalent Windows command:
CALL - Call one batch program from another.