comparison headtail.xml @ 11:b7f1d9f8f3bc

Uploaded
author xuebing
date Sat, 10 Mar 2012 07:59:27 -0500
parents
children
comparison
equal deleted inserted replaced
10:1558594a3c2e 11:b7f1d9f8f3bc
1 <tool id="headtail" name="head-or-tail">
2 <description>of a file</description>
3 <command>$headortail -n $nline $input > $out_file1 </command>
4 <inputs>
5 <param name="input" format="txt" type="data" label="Original file"/>
6 <param name="nline" size="10" type="integer" value="10" label="Number of lines to output"/>
7 <param name="headortail" type="select" label="Head or Tail">
8 <option value="head" selected="true">head</option>
9 <option value="tail">tail</option>
10 </param>
11 </inputs>
12 <outputs>
13 <data format="input" name="out_file1" />
14 </outputs>
15 <tests>
16 <test>
17 <output name="out_file1" file="testmap.head"/>
18 <param name="input" value="test.map" ftype="TXT"/>
19 <param name="n" value="10"/>
20 <param name="headortail" value="head" />
21 </test>
22 </tests>
23 <help>
24
25 **What it does**
26
27 This is a wrapper of the unix head/tail command, which is used to show lines at the beginning or at the end of a file.
28
29 </help>
30 </tool>