Mercurial > repos > gordon > unix_tools
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/head.xml Tue Oct 09 18:48:06 2012 -0400 @@ -0,0 +1,35 @@ +<tool id="cshl_head_tool" name="head" version="0.1.1"> + <description></description> + <command> + head --lines $complement$count '$input1' > '$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="'"/> + </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>
