|
0
|
1 <tool id="cshl_uniq_tool" name="uniq" version="0.1.1">
|
|
|
2 <description></description>
|
|
|
3 <command>
|
|
|
4 uniq -f $skipfields $count $repeated $ignorecase $uniqueonly $input1 > $output
|
|
|
5 </command>
|
|
|
6
|
|
|
7 <inputs>
|
|
|
8 <param format="txt" name="input1" type="data" label="File to scan for unique values" help="Make sure you have sorted this file" />
|
|
|
9 <param name="count" type="boolean" label="count [-c]" help="Prefix lines by the number of occurrences" truevalue="-c" falsevalue="" />
|
|
|
10
|
|
|
11 <param name="repeated" type="boolean" label="repeated [-d]" help="Only print duplicate lines" truevalue="-d" falsevalue="" />
|
|
|
12
|
|
|
13 <param name="ignorecase" type="boolean" label="ignore case [-i]" help="Ignore differences in case when comparing" truevalue="-i" falsevalue="" />
|
|
|
14
|
|
|
15 <param name="uniqueonly" type="boolean" label="unique only [-u]" help="Only print unique lines" truevalue="-u" falsevalue="" />
|
|
|
16
|
|
|
17 <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" />
|
|
|
18 </inputs>
|
|
|
19
|
|
|
20 <outputs>
|
|
|
21 <data format="input" name="output" metadata_source="input1"
|
|
|
22 />
|
|
|
23 </outputs>
|
|
|
24 <help>
|
|
|
25 This tool takes a sorted file and look for lines that are unique.
|
|
|
26
|
|
|
27 .. class:: warningmark
|
|
|
28
|
|
|
29 Please make sure your file is sorted, or else this tool will give you an erroneous output.
|
|
|
30
|
|
|
31 .. class:: infomark
|
|
|
32
|
|
|
33 You can sort your file using either the "Sort" tool in "Filter and Sort", or the "Sort" tool in "Unix Tools".
|
|
|
34
|
|
|
35 </help>
|
|
|
36 </tool>
|