annotate tools/mytools/headtail.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="headtail" name="head-or-tail">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>of a file</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command>$headortail -n $nline $input > $out_file1 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="input" format="txt" type="data" label="Original file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="nline" size="10" type="integer" value="10" label="Number of lines to output"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="headortail" type="select" label="Head or Tail">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <option value="head" selected="true">head</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <option value="tail">tail</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <data format="input" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <output name="out_file1" file="testmap.head"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="input" value="test.map" ftype="TXT"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="n" value="10"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <param name="headortail" value="head" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 </tool>