Projet

Général

Profil

Eval311 » Historique » Version 3

François Rioult, 22/06/2010 22:44

1 1 François Rioult
h1. Eval311
2
3
h2. Synopsis
4
5
This operator has two parameters, one input and one output. The corresponding shell script executes the parameters as a command on the input, and copies the result to the output.
6
7
h2. Parameters
8
9 2 François Rioult
3 parameters, treated as the command (and its two parameters) to be executed.
10 1 François Rioult
11
h2. Inputs
12
13
1 input file.
14
15
h2. Outputs
16
17
1 output: the result of the command.
18
19 2 François Rioult
h2. Shell code
20
21
<pre>
22
cmd=$1; shift
23
args=$1; shift
24
value=$1; shift
25
input=$1; shift
26
output=$1; shift
27
28
$cmd "$args" $value $input > $output
29
</pre>
30
31 1 François Rioult
h2. Example
32
33 3 François Rioult
This operator is used for applying a command with two parameters, for example in [[dataPreparation.aws]] for invoking [[mvminer]], a rule mining algorithm, that requires two parameters: the absolute minimum support and the _delta_ value.