Eval121 » Historique » Révision 2
Révision 1 (François Rioult, 18/06/2010 22:21) → Révision 2/3 (François Rioult, 22/06/2010 22:50)
h1. Eval121
h2. Synopsis
This operator has one parameter, two inputs and one output. The corresponding shell script executes the parameter as a command on both inputs, and copies the result to the output.
h2. Parameters
1 parameter, treated as the command to be executed.
h2. Inputs
2 input files.
h2. Outputs
1 output: the result of the command
h2. Shell code
<pre>
cmd=$1; shift
input1=$1; shift
input2=$1; shift
output=$1; shift
$cmd $input1 $input2 > $output
</pre>
h2. Example
This operator is mainly used for combining two files :
* in all for-loops, where the accumulator is handled by a @cat@ or a @paste@ in the loop
* in the discretization process [[discretization.aws]] for computing the dictionary starting from the data and the columns format