From 60d1ab01d7d0344f0d2313c5eb05bfa76b9c8f15 Mon Sep 17 00:00:00 2001 From: tjr Date: Thu, 30 May 2002 00:07:14 +0000 Subject: Accept an input file name of "-" to mean standard input, as required by P1003.2. --- usr.bin/uniq/uniq.1 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'usr.bin/uniq/uniq.1') diff --git a/usr.bin/uniq/uniq.1 b/usr.bin/uniq/uniq.1 index 4e37c14..e19bed6 100644 --- a/usr.bin/uniq/uniq.1 +++ b/usr.bin/uniq/uniq.1 @@ -54,8 +54,19 @@ .Sh DESCRIPTION The .Nm -utility reads the standard input comparing adjacent lines, and writes -a copy of each unique input line to the standard output. +utility reads the specified +.Ar input_file +comparing adjacent lines, and writes a copy of each unique input line to +the +.Ar output_file . +If +.Ar input_file +is a single dash +.Pq Sq \&- +or absent, the standard input is read. +If +.Ar output_file +is absent, standard output is used for output. The second and succeeding copies of identical adjacent input lines are not written. Repeated lines in the input will not be detected if they are not adjacent, -- cgit v1.1