why '[a-b]*' matches non alphabetical petterns? – unix.stackexchange.com

I have a file alphanum with these two lines: 123 abc this is a line I am confused to why when I run sed 's/[a-z]*/SUB/' alphanum I get the following output: SUB123 abc SUB is a line while I was ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "why '[a-b]*' matches non alphabetical petterns? – unix.stackexchange.com"