Projet

Général

Profil

Actions

Eval121

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.

Parameters

1 parameter, treated as the command to be executed.

Inputs

2 input files.

Outputs

1 output: the result of the command

Shell code

cmd=$1; shift
input1=$1; shift
input2=$1; shift
output=$1; shift

$cmd $input1 $input2 > $output

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 Data preparation for computing the dictionary starting from the data and the columns format

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