comparison head.xml @ 0:631dfde45073 draft default tip

First tool-shed public version
author gordon
date Tue, 09 Oct 2012 18:48:06 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:631dfde45073
1 <tool id="cshl_head_tool" name="head" version="0.1.1">
2 <description></description>
3 <command>
4 head --lines $complement$count '$input1' &gt; '$output'
5 </command>
6
7 <inputs>
8 <param format="txt" name="input1" type="data" label="file to cut" />
9
10 <param name="complement" type="select" label="Operation">
11 <option value="">Keep first lines</option>
12 <option value="-">Remove last lines</option>
13 </param>
14
15 <param name="count" type="integer" size="5" label="Number of lines" help="These will be kept/discarded (depending on 'operation')." value = "10">
16 <sanitizer>
17 <valid initial="string.printable">
18 <remove value="&apos;"/>
19 </valid>
20 </sanitizer>
21 </param>
22 </inputs>
23
24 <outputs>
25 <data format="input" name="output" metadata_source="input1"
26 />
27 </outputs>
28 <help>
29
30 **What it does**
31
32 This tool runs the **head** unix command, which discards lines from the end of a file.
33
34 </help>
35 </tool>