bug-bash
[Top][All Lists]
Advanced

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

Re: How to match regex in bash? (any character)


From: Chet Ramey
Subject: Re: How to match regex in bash? (any character)
Date: Thu, 29 Sep 2011 14:25:18 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2

On 9/29/11 12:06 PM, Greg Wooledge wrote:

>> As I mentioned previously, the best is to add a few examples in man
>> bash.
> 
> I would not object to that, but I can't speak for Chet.

As I said, I will add examples to the info manual and some more
explanation to the man page.  Regular expressions are so fundamental
to Unix, though, I would expect familiarity with them as a given.

> Another option would be to refer to the POSIX definition of
> Extended Regular Expressions as a web site.  I wish they had
> better URLs, though.  The URL I have for it at the moment is
> http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html#tag_09_04

That's old (issue 6, Posix 2004).  The current one is

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap09.html#tag_09

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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