LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04:42 AM   #16
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31

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, 06:03 AM   #17
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 38
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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
Open Source Consulting | Domain Registration