[linux] Vybratie unikatnych slov

Onofer Dusan onofer na phf.euke.sk
Pátek Únor 22 14:56:40 CET 2002


On Fri, 22 Feb 2002, Marcel Telka wrote:

> Konkretne:
>
> echo "red green blue red yellow red blue" \
> 	| tr ' ' '\012' | sort | uniq | tr '\012' ' '

tusim, ze miesto uniq sa da pouzit '-u' pri sort-e.

> +-------------------------------------------+
> | Marcel Telka   e-mail:   marcel na telka.sk  |
> |                homepage: http://telka.sk/ |
> |                jabber:   marcel na jabber.sk |
> +-------------------------------------------+

d.

--------------------------------------------------------------------
* Dusan Onofer <onofer na phf.euke.sk>, RFC 1925 2.(1): It has to work.





Další informace o konferenci linux