Actions
Eval101¶
Synopsis¶
This operator has only one parameter and no input. The corresponding shell script executes the parameter as a command, and copies the result in the output.
Parameters¶
1 parameter, treated as the command to be executed. The command can contains spaces, such as ls -al
, date -R
.
Inputs¶
No input
Outputs¶
1 output: the result of the command
Shell code¶
cmd=$1; shift output=$1; shift $cmd > $output
Example¶
This operator can be used for generating a file, containing the current date for example, with "date" as a parameter.
See the scenario CMAR, where this operator initiates an "empty" file with only the date for a "for" loop.
Mis à jour par François Rioult il y a environ 12 ans · 7 révisions