Query: uniq
OS: minix
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
UNIQ(1) General Commands Manual UNIQ(1)NAMEuniq - delete consecutive identical lines in a fileSYNOPSISuniq [-cdu] [-n] [+n] [input [output]]OPTIONS-c Give count of identical lines in the input -d Only duplicate lines are written to output -u Only unique lines are written to output -n Skip the first n columns when matching +n Skip the first n fields when matchingEXAMPLESuniq +2 file # Ignore first 2 fields when comparing uniq -d inf outf # Write duplicate lines to outfDESCRIPTIONUniq examines a file for consecutive lines that are identical. All but duplicate entries are deleted, and the file is written to output. The +n option skips the first n fields, where a field is defined as a run of characters separated by white space. The -n option skips the first n spaces. Fields are skipped first.SEE ALSOsort(1). UNIQ(1)
Related Man Pages |
---|
uniq(1) - mojave |
uniq(1) - bsd |
uniq(1) - ultrix |
uniq(1) - opendarwin |
uniq(1) - xfree86 |