Projet

Général

Profil

Cat » Historique » Version 1

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

1 1 François Rioult
h1. Cat
2
3
h2. Synopsis
4
5
This operator has one parameter, one input and one output. The corresponding shell script executes the parameter as a command, considering the input as the standard input, and copies the result in the output.
6
7
h2. Parameters
8
9
1 parameter, treated as the command to be executed.
10
11
h2. Inputs
12
13
2 inputs, the input file and the parameter file for the command.
14
15
h2. Outputs
16
17
1 output: the result of the command
18
19
h2. Shell code
20
21
<pre>
22
cmd=$1; shift
23
input1=$1; shift
24
input2=$1; shift
25
output=$1; shift
26
27
cat $input1 | $cmd $input2 > $output
28
</pre>
29
30
h2. Example
31
32
This operator is used for filtering the output result of [[rapidMiner]] with "xalan":http://xml.apache.org/xalan-c/ in [[perturbation.aws]].