[lug] grep question
Chip Atkinson
chip at pupman.com
Mon Jun 11 07:16:28 MDT 2007
Well, it's SuSE enterprise linux, so that is probalby "weird" but
chip at chip1:~> ls -l /usr/bin/grep
lrwxrwxrwx 1 root root 9 2005-08-29 11:28 /usr/bin/grep -> /bin/grep*
chip at chip1:~> file /bin/grep
/bin/grep: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.4.1, dynamically linked (uses shared libs), not stripped
On Sun, 10 Jun 2007, Collins Richey wrote:
> On 6/10/07, Chip Atkinson <chip at pupman.com> wrote:
> > Greetings,
> >
> > I'm trying to figure this one out:
> >
> > $ echo abcdefg | /usr/bin/grep "[A-Z]"
> > abcdefg
> >
> > $ echo abcdefg | /usr/bin/grep -E "[A-Z]"
> > abcdefg
> >
> >
> > I always thought "[A-Z]" represented the characters A through Z, and not
> > the characters a through z.
> >
> > Any ideas?
> >
> > Thanks in advance.
> >
>
> A few things.
>
> 1. You have a weird system. grep is /bin/grep on any normal Linux system.
> 2. Your grep example produces no output, ie pattern not found, on my system.
> 3. You must have something in your environment or a script in
> /usr/bin/grep that is forcing a case sensitive scan.
>
> Enjoy,
> --
> Collins Richey
> If you fill your heart with regrets of yesterday and the worries
> of tomorrow, you have no today to be thankful for.
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>
More information about the LUG
mailing list