LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2016, 04:59 PM   #1
cpper
LQ Newbie
 
Registered: Aug 2016
Posts: 1

Rep: Reputation: Disabled
Wildcards question


Hello guys, could you briefly explain to me what is the difference between
Code:
[:upper:]*
and
Code:
[[:upper:]]*
wildcards ?
 
Old 08-23-2016, 05:55 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,143

Rep: Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350Reputation: 1350
Quote:
Originally Posted by cpper View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ls using wildcards Fixit7 Puppy 11 03-30-2016 10:12 AM
Cp with wildcards Fixit7 Puppy 4 11-17-2014 01:20 AM
Wildcards randalleg Linux From Scratch 3 06-19-2011 09:09 AM
need help with wildcards liorpana Programming 2 05-12-2010 09:45 AM
Wildcards dazdaz Linux - Newbie 3 01-23-2005 06:33 AM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration