home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
gnu
/
textutils-1.9-bin.lha
/
man
/
cat1
/
uniq.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
3KB
|
133 lines
UNIQ(1L) UNIQ(1L)
NNAAMMEE
uniq - remove duplicate lines from a sorted file
SSYYNNOOPPSSIISS
uunniiqq [-cdu] [-f skip-fields] [-s skip-chars] [-w check-
chars] [-#skip-fields] [+#skip-chars] [--count]
[--repeated] [--unique] [--skip-fields=skip-fields]
[--skip-chars=skip-chars] [--check-chars=check-chars]
[--help] [--version] [infile] [outfile]
DDEESSCCRRIIPPTTIIOONN
This manual page documents the GNU version of uunniiqq. uunniiqq
prints the unique lines in a sorted file, discarding all
but one of a run of matching lines. It can optionally
show only lines that appear exactly once, or lines that
appear more than once. uunniiqq requires sorted input because
it compares only consecutive lines.
If the output file is not specified, uunniiqq writes to the
standard output. If the input file is not specified, it
reads from the standard input.
OOPPTTIIOONNSS
_-_u_, _-_-_u_n_i_q_u_e
Only print unique lines.
_-_d_, _-_-_r_e_p_e_a_t_e_d
Only print duplicate lines.
_-_c_, _-_-_c_o_u_n_t
Print the number of times each line occurred along
with the line.
_-_n_u_m_b_e_r_, _-_f_, _-_-_s_k_i_p_-_f_i_e_l_d_s_=_n_u_m_b_e_r
In this option, _n_u_m_b_e_r is an integer representing
the number of fields to skip over before checking
for uniqueness. The first _n_u_m_b_e_r fields, along
with any blanks found before _n_u_m_b_e_r fields is
reached, are skipped over and not counted. Fields
are defined as a strings of non-space, non-tab
characters, that are separated from each other by
spaces and tabs.
_+_n_u_m_b_e_r_, _-_s_, _-_-_s_k_i_p_-_c_h_a_r_s_=_n_u_m_b_e_r
In this option, _n_u_m_b_e_r is an integer representing
the number of characters to skip over before check-
ing for uniqueness. The first _n_u_m_b_e_r characters,
along with any blanks found before _n_u_m_b_e_r charac-
ters is reached, are skipped over and not counted.
If you use both the field and character skipping
options, fields are skipped over first.
_-_w_, _-_-_c_h_e_c_k_-_c_h_a_r_s_=_n_u_m_b_e_r
Specify the number of characters to compare in the
FSF GNU Text Utilities 1
UNIQ(1L) UNIQ(1L)
lines, after skipping any specified fields and
characters. Normally the entire rest of the lines
are compared.
_-_-_h_e_l_p Print a usage message and exit with a non-zero sta-
tus.
_-_-_v_e_r_s_i_o_n
Print version information on standard error then
exit.
FSF GNU Text Utilities 2