Документ взят из кэша поисковой машины. Адрес оригинального документа : http://comet.sai.msu.ru/UNIXhelp/utilities2/uniq.html
Дата изменения: Fri Jan 17 12:43:26 1997
Дата индексирования: Tue Oct 2 00:40:11 2012
Кодировка:
Removing duplicate lines with uniq

Removing duplicate lines with uniq

To remove duplicate lines from a file use the command:

   uniq in_file out_file

uniq searches the in_file for consecutive duplicate lines - a line that is immediately followed by one or more lines that are identical to it - and removes them. The result is an out_file that contains no duplicate lines.

Use the sort command if you want to remove duplicate lines that occur in different parts of a file.


[Home] [Search] [Index]