home *** CD-ROM | disk | FTP | other *** search
-
-
-
- UNIQ(1L) MISC. REFERENCE MANUAL PAGES UNIQ(1L)
-
-
-
- NAME
- uniq - remove duplicate lines from a sorted file
-
- SYNOPSIS
- uniq [-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] [infile] [outfile]
-
- DESCRIPTION
- This manual page documents the GNU version of uniq. uniq
- 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. uniq requires sorted input because it compares
- only consecutive lines.
-
- If the output file is not specified, uniq writes to the
- standard output. If the input file is not specified, it
- reads from the standard input.
-
- OPTIONS
- -_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.
-
- -, -_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.
-
- --, -_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 represent the
- number of characters to skip over before checking for
- uniqueness. The first _n_u_m_b_e_r characters, along with
- any blanks found before _n_u_m_b_e_r characters 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
-
-
-
- Sun Release 4.1 Last change: 1
-
-
-
-
-
-
- UNIQ(1L) MISC. REFERENCE MANUAL PAGES UNIQ(1L)
-
-
-
- lines, after skipping any specified fields and charac-
- ters. Normally the entire rest of the lines are com-
- pared.
-
- The long-named options can be introduced with `+' as well as
- `--', for compatibility with previous releases. Eventually
- support for `+' will be removed, because it is incompatible
- with the POSIX.2 standard.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sun Release 4.1 Last change: 2
-
-
-
-