Silviu Marin-Caea wrote:
De ce face asta asa?
[EMAIL PROTECTED]:~> echo asdfsdf | grep --extended-regexp "[:digit:]"
asdfsdf
Ma asteptam sa nu returneze nimic.

[EMAIL PROTECTED]:~> echo asdfsdf | grep --extended-regexp "[:alpha:]"
asdfsdf

De ce face asta asa?

pentru ca alea is clase de caractere care tre bagate in []

echo asdfsdf | grep --extended-regexp "[[:digit:]]"

grep --color ajuta, btw ;)


_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui