AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
UNIQ(l) UNIQ ( 1) NAME uniq - report repeated lines in a file SYNOPSIS uniq [ -udc [ +n ] [ -n ] ] [ input [ output ] ] DESCRIPTION Uniq reads the input file comparing adjacent lines. In the normal case, the second and succeeding copies of repeated lines are removed; the remainder is written on the output file. Input and output should always be different. Note that repeated lines must be adjacent in order to be found; see sort(1). If the -u flag is used, just the lines that are not repeated in the original file are output. The -d option specifies that one copy of just the repeated lines is to be written. The normal mode output is the union of the -u and -d mode outputs. The -c option supersedes -u and -d and generates an output report in default style but with each line preceded by a count of the number of times it occurred. The n arguments specify skipping an initial portion of each line in the comparison: - n The first n fields together with any blanks before each are ignored. A field is defined as a string of non-space, non-tab characters separated by tabs and spaces from its neighbors. +n The first n characters are ignored. Fields are skipped before characters. SEE ALSO comm( 1 ) , sort( 1 ) . - 1 -
- Page 550 and 551: �- . .�
- Page 552 and 553: � ·. ____ .
- Page 554 and 555: TABS (1) TABS ( 1) -u 1,12,20,44 UN
- Page 556 and 557: � \_ )
- Page 559 and 560: TAR ( 1 ) TAR ( 1) NAME tar - tape
- Page 561 and 562: TBL ( I ) TBL ( I ) NAME tbl - form
- Page 563 and 564: TBL(l) TBL(l) BUGS See BUGS under n
- Page 565: TC ( l ) TC ( l ) NAME tc - phototy
- Page 571 and 572: TEE(l) TEE(l) NAME tee - pipe fitti
- Page 573 and 574: TEST ( 1 ) TEST (I) NAME test - con
- Page 575 and 576: TIME ( 1) TIME ( 1) NAME time - tim
- Page 577: TOUCH (!) TOUCH (!) NAME touch - up
- Page 581 and 582: TRUE ( ! ) NAME true, false - provi
- Page 583 and 584: TSET ( 1) {AT&T UNIX PC only ) TSET
- Page 585: TSORT ( l ) TSORT ( 1) NAME tsort -
- Page 588 and 589: � I I I I I I I II I I I I I I I
- Page 590 and 591: UAHELP (l) \US\ \BL\ \BS\ \EOT\ (AT
- Page 592 and 593: !�
- Page 595 and 596: UMODEM(l) UMODEM (l) NAME umodem -
- Page 597 and 598: UNAME(l) UNAME(l) NAME uname - prin
- Page 599: UNGET ( l ) UNGET ( l ) NAME unget
- Page 603: UNITS ( l } UNITS ( l ) NAME units
- Page 606 and 607: UUCP ( lC) UUCP ( lC ) -nuser Notif
- Page 608 and 609: UUSTAT (IC) UUSTAT (lC) options -j,
- Page 610 and 611: UUTO (lC) FILES PUBDm /usr fspoolfu
- Page 612 and 613: UUX(lC} UUX(lC) Uux returns an ASCI
- Page 614 and 615: VAL (l) bit 5 = SID does not exist;
- Page 616 and 617: VC ( 1 ) VC (I) :asg keyword=value
- Page 619 and 620: VI (l) VI (l) NAME vi, view - scree
- Page 621 and 622: VI (l) fnj$ End of line fn}+ Next l
- Page 623 and 624: � I VI ( I) [n}dd Moving Text "r
- Page 625 and 626: VI (l) :e! file :e + name :e + n :n
- Page 627 and 628: VI (l) VI ( 1) lisp (default: no li
- Page 629 and 630: VI ( I ) VI (l) A requested tag is
- Page 631 and 632: WAIT ( l ) WAIT ( l ) NAME wait - a
- Page 633 and 634: WC (l) WC (l) NAME we - word count
- Page 635: WHAT ( l ) WHAT ( l ) NAME what - i
- Page 638 and 639: WHO (l) WHO(l) is the name of the p
- Page 641 and 642: XARGS ( 1) XARGS ( l ) NAME xargs -
- Page 643: XARGS ( 1) XARGS ( l ) The user is
- Page 646 and 647: YACC ( 1) YACC (l) DIAGNOSTICS The
- Page 648 and 649: INTRO ( 2) INTR0 (2) the appropriat
UNIQ(l) UNIQ ( 1)<br />
NAME<br />
uniq - report repeated lines in a file<br />
SYNOPSIS<br />
uniq [ -udc [ +n ] [ -n ] ] [ input [ output ] ]<br />
DESCRIPTION<br />
Uniq reads the input file comparing adjacent lines. In the normal<br />
case, the second and succeeding copies of repeated lines are<br />
removed; the remainder is written on the output file. Input and<br />
output should always be different. Note that repeated lines must<br />
be adjacent in order to be found; see sort(1). If the -u flag is<br />
used, just the lines that are not repeated in the original file are<br />
output. The -d option specifies that one copy of just the<br />
repeated lines is to be written. The normal mode output is the<br />
union of the -u and -d mode outputs.<br />
The -c option supersedes -u and -d and generates an output<br />
report in default style but with each line preceded by a count of<br />
the number of times it occurred.<br />
The n arguments specify skipping an initial portion of each line in<br />
the comparison:<br />
- n The first n fields together with any blanks before each<br />
are ignored. A field is defined as a string of non-space,<br />
non-tab characters separated by tabs and spaces from its<br />
neighbors.<br />
+n The first n characters are ignored. Fields are skipped<br />
before characters.<br />
SEE ALSO<br />
comm( 1 ) , sort( 1 ) .<br />
- 1 -