Re: Bash pattern matching

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

 



-----Original Message-----
From: Tim Waugh <twaugh@redhat.com>
Sent: Thu, Feb 06, 2003 at 05:57:35PM +0000
To PsycheList
Subject: Re: Bash pattern matching

> 
> You are confusing fnmatch-style patterns (which the shell uses) with
> regular expressions (which it doesn't).
> 
> Tim.
> */

Sorry, your answer is not clear. man bash says:

Pattern Matching

 Any character that appears in a pattern, other than the special
 pattern characters  described below, matches itself.  The NUL
 character may not occur in a pattern.  The special pattern
 characters must be  quoted  if they are to be matched literally.

 The special pattern characters have the following meanings:

 *      Matches any string including the null string.
 ?      Matches any single character.
 [...]  Matches any one of the enclosed characters. A pair of charac-
        ters separated by a hyphen denotes a range expression; any char-
                AND SO ON...

Which patterns is it talking about?
-- 
vikram...    <viki@bol.net.in>
         ||||||||
         ||||||||
^^'''''^^||root||^^^'''''''^^
        // \\   ))
       //(( \\// \\
      // /\\ ||   \\
     || / )) ((    \\
-- 
Thus My Computer Chittered :
~~~~~~~~~~~~~~~~~~~~~~~~~~
It is your destiny.
- Darth Vader
-- 
 o
~|~
 =
Registered Linux User #285795



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux