comparison head.xml @ 0:ec66f9d90ef0 draft

initial uploaded
author bgruening
date Thu, 05 Sep 2013 04:58:21 -0400
parents
children a4ad586d1403
comparison
equal deleted inserted replaced
-1:000000000000 0:ec66f9d90ef0
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}' &gt; '${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="&apos;"/>
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>