annotate mytools/headtail.xml @ 0:39217fa39ff2

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