bug-bash
[Top][All Lists]
Advanced

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

suspect nobody noticed these don't work ...


From: Charles T. Smith
Subject: suspect nobody noticed these don't work ...
Date: Thu, 02 Jun 2016 15:23:01 -0000
User-agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)

Does anybody know how to use ?(pattern)?  Or @(pattern)?  Or any of them
except !(pattern)?  If you do an internet search, the man page is always
blithely quoted, but only !(pattern) is ever demostrated...
I wonder if the others even work?

              ?(pattern-list)
                     Matches zero or one occurrence of the given patterns
              *(pattern-list)
                     Matches zero or more occurrences of the given patterns
              +(pattern-list)
                     Matches one or more occurrences of the given patterns
              @(pattern-list)
                     Matches one of the given patterns
              !(pattern-list)
                     Matches anything except one of the given patterns


$ ls -d ?(*clean*|vim)
ciho-clean  clean  vim

(not that I can think of an application - purely academic)


reply via email to

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