view tools/mytools/headtail.xml @ 1:cdcb0ce84a1b

author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
line wrap: on
line source

<tool id="headtail" name="head-or-tail">
  <description>of a file</description>
  <command>$headortail -n $nline $input > $out_file1 </command>
    <param name="input" format="txt" type="data" label="Original file"/>
    <param name="nline" size="10" type="integer" value="10" label="Number of lines to output"/>
    <param name="headortail" type="select" label="Head or Tail">
        <option value="head" selected="true">head</option>
        <option value="tail">tail</option>
    <data format="input" name="out_file1" />
      <output name="out_file1" file="testmap.head"/>
      <param name="input" value="" ftype="TXT"/>
      <param name="n" value="10"/>
      <param name="headortail"  value="head" />

**What it does**

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.