Tee » Historique » Révision 2
Révision 1 (François Rioult, 22/06/2010 23:10) → Révision 2/3 (François Rioult, 22/06/2010 23:19)
h1. Tee # this shell is an alternative to the standard file saver of Ariane # given a filename as parameter, it copies the input to it and the output. h2. Synopsis ouput. This operator has one parameter, one input and one output. The corresponding shell script copies the input to the output and to the file having the parameter as name. It is an alternative to the standard file saver of Ariane and it allows to "rename" the input of a component. h2. Parameters 1 parameter, treated as the name of the file to which the input it copied. h2. Inputs 1 input, the input file h2. Outputs 1 output: the result of the command h2. Shell code <pre> filename=$1; shift input=$1; shift output=$1; shift cat $input | tee $filename > $output </pre> h2. Example This operator is mainly used for renaming the temporary file generated by Ariane, for example for invoking [[Weka]] (see [[perturbation-weka.aws]], that needs specific file extension.