uniq

QNX SDP8.0Utilities ReferenceUtilities

Report or filter out repeated lines in a file (POSIX, toybox)

Syntax:

uniq [-cdiuz] [-w max_chars] [-f fields] [-s char] [infile [outfile]]

Runs on:

QNX OS

Options:

-c
Show counts before each line.
-d
Show only repeated lines.
-f fields
Ignore the first specified fields.
-i
Ignore case-sensitivity when comparing lines.
-s char
Ignore the first specified characters.
-u
Show only unique lines.
-w max_chars
Compare the maximum max_chars per line.
-z
End lines with \0 not \n.
infile
The pathname of the input file.
outfile
The pathname of the output file.

Description:

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: