Projet

Général

Profil

Eval111 » Historique » Révision 3

Révision 2 (François Rioult, 18/06/2010 21:35) → Révision 3/4 (François Rioult, 22/06/2010 22:49)

h1. Eval111 

 h2. 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. 

 h2. Parameters 

 1 parameter, treated as the command to be executed. 

 h2. Inputs 

 1 input, the input file 

 h2. Outputs 

 1 output: the result of the command 

 h2. Shell code 

 <pre> 
 cmd=$1; shift 
 input=$1; shift 
 output=$1; shift 

 $cmd $input > $output 
 </pre> 

 h2. 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.