0
|
1 <tool id="unixtools_head_tool" name="Select first" version="0.1.1">
|
|
2 <description>lines from a dataset (head)</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="8.21">gnu_coreutils</requirement>
|
|
5 </requirements>
|
|
6 <command>
|
|
7 head --lines $complement$count '${infile}' > '${outfile}'
|
|
8 </command>
|
|
9
|
|
10 <inputs>
|
|
11 <param format="txt" name="infile" type="data" label="file to cut" />
|
|
12
|
|
13 <param name="complement" type="select" label="Operation">
|
|
14 <option value="">Keep first lines</option>
|
|
15 <option value="-">Remove last lines</option>
|
|
16 </param>
|
|
17
|
|
18 <param name="count" type="integer" size="5" value="10" label="Number of lines" help="These will be kept/discarded (depending on 'operation').">
|
|
19 <sanitizer>
|
|
20 <valid initial="string.printable">
|
|
21 <remove value="'"/>
|
|
22 </valid>
|
|
23 </sanitizer>
|
|
24 </param>
|
|
25 </inputs>
|
|
26
|
|
27 <outputs>
|
|
28 <data format="input" name="outfile" metadata_source="infile"/>
|
|
29 </outputs>
|
|
30 <help>
|
|
31
|
|
32 **What it does**
|
|
33
|
|
34 This tool runs the **head** unix command, which discards lines from the end of a file.
|
|
35
|
|
36 </help>
|
|
37 </tool>
|