LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-26-2006, 05:42 AM   #16
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30

Yep! But it does make sense.

I was going to mention the [[:upper:]] meta-class earlier (must have slipped my mind); it's probably a good habit to get into, since it apparently works with Unicode uppercase characters that aren't 'between' ASCII 'A' and ASCII 'Z'. I'd expect that it'd work for grep even with your locales set as they originally were.
 
Old 01-26-2006, 07:03 AM   #17
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
Ok, so our ls |grep ^[A-Z] example is equivalent to ls |grep ^[[:upper:]]
And: ls |grep ^[a-z] is the same as: ls |grep ^[[:lower:]]
Hmm, that goes quite well for sinister Black magic
I'll try stick to the metaclass ones since they are locale-independent. Thanks Dtsazza!
For more classes see: man grep
 
  


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
HELP, sorting files by name with environment ar3ol Linux - Newbie 6 12-05-2005 05:03 PM
bash help renaming files kahn Programming 6 06-16-2005 08:15 AM
making .tif files into animated .gif files (bash shell, Red Hat 7.2) illiniguy3043 Linux - Newbie 1 06-01-2004 05:04 PM
Sorting files in Konqueror/File associations/sound in KDE Kelvie Linux - Newbie 9 07-19-2003 02:56 AM
bash files ChimpFace9000 Linux - General 1 08-23-2002 10:24 PM


All times are GMT -5. The time now is 12:31 PM.

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