Projet

Général

Profil

Actions

Eval111

Synopsis

This operator has one parameter, one input and one output. The corresponding shell script executes the parameter as a command on the input, and copies the result in the output.

Parameters

1 parameter, treated as the command to be executed.

Inputs

1 input, the input file

Outputs

1 output: the result of the command

Shell code

cmd=$1; shift
input=$1; shift
output=$1; shift

$cmd $input > $output

Example

This operator is mainly used, for filtering a file with the parameter as command, or computing a result from the input and writing it to the output. See CMAR for an example where this operator computes the predicted class for the column file of the votes.

Mis à jour par François Rioult il y a presque 14 ans · 4 révisions