0
|
1 <tool id="unixtools_uniq_tool" name="Unique lines">
|
|
2 <description>from sorted file</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="8.21">gnu_coreutils</requirement>
|
|
5 </requirements>
|
|
6 <command>
|
|
7 uniq
|
|
8 -f
|
|
9 $skipfields
|
|
10 $count
|
|
11 $repeated
|
|
12 $ignorecase
|
|
13 $uniqueonly
|
|
14 $input
|
|
15
|
|
16 ## feature is not yet released, it will be in the next 8.22 version
|
|
17 ##--group=$group
|
|
18 > $output
|
|
19 </command>
|
|
20
|
|
21 <inputs>
|
|
22 <param format="txt" name="input" type="data" label="File to scan for unique values" help="Make sure you have sorted this file" />
|
|
23
|
|
24 <param name="count" type="boolean" label="count [-c]" help="Prefix lines by the number of occurrences" truevalue="-c" falsevalue="" />
|
|
25 <param name="repeated" type="boolean" label="repeated [-d]" help="Only print duplicate lines" truevalue="-d" falsevalue="" />
|
|
26 <param name="ignorecase" type="boolean" label="ignore case [-i]" help="Ignore differences in case when comparing" truevalue="-i" falsevalue="" />
|
|
27 <param name="uniqueonly" type="boolean" label="unique only [-u]" help="Only print unique lines" truevalue="-u" falsevalue="" />
|
|
28 <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" />
|
|
29
|
|
30 <!--
|
|
31 <param name="group" type="select" label="Output all lines, and delimit each unique group.">
|
|
32 <option value="separate">Separate unique groups with a single delimiter</option>
|
|
33 <option value="prepend">Output a delimiter before each group of unique items</option>
|
|
34 <option value="append">Output a delimiter after each group of unique items.</option>
|
|
35 <option value="both">Output a delimiter around each group of unique items.</option>
|
|
36 </param>
|
|
37 -->
|
|
38 </inputs>
|
|
39
|
|
40 <outputs>
|
|
41 <data format="input" name="output" metadata_source="input"/>
|
|
42 </outputs>
|
|
43 <help>
|
|
44 This tool takes a sorted file and look for lines that are unique.
|
|
45
|
|
46 .. class:: warningmark
|
|
47
|
|
48 Please make sure your file is sorted, or else this tool will give you an erroneous output.
|
|
49
|
|
50 .. class:: infomark
|
|
51
|
|
52 You can sort your file using either the "Sort" tool in "Filter and Sort", or the "Sort" tool in "Unix Tools".
|
|
53
|
|
54 </help>
|
|
55 </tool>
|