annotate headtail.xml @ 11:b7f1d9f8f3bc

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