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

Поисковые слова: star trail
Examples of using the uniq command

Examples of using the uniq command

To remove consecutive duplicate lines from a file:

   uniq acc_nos accounts

This removes all consecutive duplicate lines from the file acc_nos and places the output in the file accounts.


To list the consecutive duplicate lines and the number of times that each occurs:

   uniq -c tel_nos errors

This lists each of the consecutive duplicate lines in the file tel_nos and the number of times that each is repeated. The results are placed in the file errors.


[Home] [Search] [Index]