$ echo 'sample-text'|egrep '[0-9\-a-z]'
grep: Invalid range end

but:

$ echo 'sample-text'|egrep '[0-9a-z\-]'
sample-text

(grep 2.20-4.1)



Reply via email to