annotate mytools/headtail.xml @ 7:f0dc65e7f6c0

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