bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grep Documentation


From: Alain Magloire
Subject: Re: Grep Documentation
Date: Sun, 29 Jul 2001 14:56:48 -0400 (EDT)

> 
> Please include an example how to use the extended regular
> expressions. It took me some time to find out that I need to use
> [[:space:]] and not [:space:].
> 
> Example:
> 
> > grep -E '[[:space:]]+/[[:space:]]+ext2' /etc/fstab
> 
> This matches the ext2 root filesystem of /etc/fstab
> 
> If you have no time to do things like this tell me how I can volunteer
> to add documentation.

GNU grep 2.4.2 comes with an info file that serves as document. 
An excerpt:
  "For example, `[[:alnum:]]' means `[0-9A-Za-z]', except the latter
depends upon the C locale and the ASCII character encoding, whereas the
former is independent of locale and character set.  (Note that the
brackets in these class names are part of the symbolic names, and must
be included in addition to the brackets delimiting the bracket list.)"

After reading the info files.  Send to this list any patches
for improvement.

--
alain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]