next up previous
Next: Porządkowanie pliku; polecenie sort Up: wyklad6 Previous: Wyszukiwanie wzorca w pliku/plikach

Oddzielanie powtarzających się linii; polecenie uniq (UNIQue)

[adam@etoh ~]$ more suma
Veilind's law of experimentation:
Veilind's law of experimentation:
(1) If reproducibility may be a problem, conduct the test only once.
(1) If reproducibility may be a problem, conduct the test only once.
(2) If a straight line fit is required, obtain only two data points.
(2) If a straight line fit is required, obtain only two data points.

[adam@etoh ~]$ cat suma | uniq
Veilind's law of experimentation:
(1) If reproducibility may be a problem, conduct the test only once.
(2) If a straight line fit is required, obtain only two data points.



Adam Liwo 2002-03-07