LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Wildcards question (https://www.linuxquestions.org/questions/linux-newbie-8/wildcards-question-4175587801/)

cpper 08-23-2016 03:59 PM

Wildcards question
 
Hello guys, could you briefly explain to me what is the difference between
Code:

[:upper:]*
and
Code:

[[:upper:]]*
wildcards ?

rknichols 08-23-2016 04:55 PM

Quote:

Originally Posted by cpper (Post 5595060)
Hello guys, could you briefly explain to me what is the difference between
Code:

[:upper:]*
and
Code:

[[:upper:]]*
wildcards ?

The first is any number of characters from the set ":uper". Because it is not inside a bracket expression, the string "[:upper:]" does not refer to a character class, even though it looks like one.

The second correctly matches zero of more upper-case characters.


All times are GMT -5. The time now is 10:33 PM.