The uniq command of a linux Command every day is used to remove repeated row output from the file. (Do not change the original file) uniq -- help can be used to view command parameters. Uniq file1 shows the content in file1, and repeated rows are only displayed once. Uniq-c file1 shows the content in file1, and the repeated rows are only displayed once. List the number of times that the row appears in the file before each row. Uniq-d file1 only displays the duplicate rows in file1, and the duplicate rows are only displayed once. Www.2cto.com uniq-D file1 only displays the repeated rows in file1, and all the repeated rows are displayed. Uniq-f 2 file1 ignores the first two words of each row and displays the content in file1. Duplicate rows are only displayed once. Uniq-I file1 ignores the size and displays the content in file1. Duplicate rows are only displayed once. Uniq-s 5 file1 ignores the first five letters of each row. The content in file1 is displayed only once. Uniq-u file1 only displays non-duplicate rows in file1. Uniq-w 5 file1 only compares the first five letters of each row. The content in file1 is displayed. Author: CrazyNemo