diff uniq.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/uniq.xml	Tue Oct 09 18:48:06 2012 -0400
@@ -0,0 +1,36 @@
+<tool id="cshl_uniq_tool" name="uniq" version="0.1.1">
+  <description></description>
+  <command>
+	uniq -f $skipfields $count $repeated $ignorecase $uniqueonly $input1 &gt; $output
+  </command>
+
+  <inputs>
+	<param format="txt" name="input1" type="data" label="File to scan for unique values" help="Make sure you have sorted this file" />
+	<param name="count" type="boolean" label="count [-c]" help="Prefix lines by the number of occurrences" truevalue="-c" falsevalue="" />
+
+	<param name="repeated" type="boolean" label="repeated [-d]" help="Only print duplicate lines" truevalue="-d" falsevalue="" />
+
+	<param name="ignorecase" type="boolean" label="ignore case [-i]" help="Ignore differences in case when comparing" truevalue="-i" falsevalue="" />
+
+	<param name="uniqueonly" type="boolean" label="unique only [-u]" help="Only print unique lines" truevalue="-u" falsevalue="" />
+
+	<param name="skipfields" type="integer" label="skip fields [-f]" help="Avoid comparing the first N fields. (use zero to start from the first field)" size="2" value="0" />
+  </inputs>
+
+  <outputs>
+    <data format="input" name="output" metadata_source="input1"
+	/>
+  </outputs>
+  <help>
+This tool takes a sorted file and look for lines that are unique.
+
+.. class:: warningmark
+
+Please make sure your file is sorted, or else this tool will give you an erroneous output.
+
+.. class:: infomark
+
+You can sort your file using either the "Sort" tool in "Filter and Sort", or the "Sort" tool in "Unix Tools".
+
+  </help>
+</tool>