It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.

uniq

The uniq command strips duplicate lines from a specified file and then sends them to either another file or to standard output file if no file is named.

Options:
* -c: Counts duplicate lines.
* -d: Returns duplicate lines, but not unique lines.
* -fn: Skips the first n field of a line. Fields are separated by spaces or tabs.
* -sn: Skips the first n character of a field. Fields are separated by spaces or tabs.
* -u: Returns unique lines, and duplicate lines are sent to either.
* -w n: Compares the first n character of a line.
* -n: Skips the first n field of a line. Fields are separated by spaces or tabs.
* +n: Skips the first n character of a field. Fields are separated by spaces or tabs.
* --check-chars=n: Compares the first n character of a line.
* --skip-chars=n: Skips the first n character of a field. Fields are separated by spaces or tabs.
* --skip-fields=n: Skips the first n field of a line. Fields are separated by spaces or tabs.
Posted on May 31st, 2014

Comments

( Posted)

Related Products

▼ Sponsored Links ▼
▲ Sponsored Links ▲
Donate Today