Afficher un message
Vieux 15/03/2008, 19h24   #2
pk
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: weird behavior of grep

dave_140390@hotmail.com wrote:

> Now, if I grep this file for [a-z], I get:
> $ grep [a-z] test
> small line
> LARGE LINE


Try this:

$ grep '[[:lower:]]' test

and this:

$ LC_ALL=C grep '[a-z]' test

--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.
  Réponse avec citation
 
Page generated in 0,04323 seconds with 9 queries