view head.xml @ 0:631dfde45073 draft default tip

First tool-shed public version
author gordon
date Tue, 09 Oct 2012 18:48:06 -0400
parents
children
line wrap: on
line source

<tool id="cshl_head_tool" name="head" version="0.1.1">
  <description></description>
  <command>
	head --lines $complement$count '$input1' &gt; '$output'
  </command>

  <inputs>
	<param format="txt" name="input1" type="data" label="file to cut" />

	<param name="complement" type="select" label="Operation">
	      <option value="">Keep first lines</option>
	      <option value="-">Remove last lines</option>
	</param>

	<param name="count" type="integer" size="5" label="Number of lines" help="These will be kept/discarded (depending on 'operation')." value = "10">
		<sanitizer>
		    <valid initial="string.printable">
			    <remove value="&apos;"/>
		    </valid>
	    </sanitizer>
	</param>
  </inputs>

  <outputs>
    <data format="input" name="output" metadata_source="input1"
	/>
  </outputs>
  <help>

**What it does**

This tool runs the **head** unix command, which discards lines from the end of a file.

  </help>
</tool>