Projet

Général

Profil

Actions

Eval111 » Historique » Révision 3

« Précédent | Révision 3/4 (diff) | Suivant »
François Rioult, 22/06/2010 22:49


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.aws 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 plus de 14 ans · 3 révisions