From: Chris F.A. Johnson on
On 2010-02-16, Dominic Fandrey wrote:
> On 16/02/2010 15:43, Hongyi Zhao wrote:
>> I want to do a for loop on the following files:
>>
>> DO*.pdf,
>> Do*.pdf,
>> dO*.pdf,
>> do*.pdf,
>>
>> So I use the following code:
>>
>> for i in [Dd][Oo]*.pdf
>>
>> Am I right or not?
>
> To my knowledge you are right. I don't know whether it's POSIX,
> but ash-derivates work that way.

It is standard in all Bourne-type shells.


--
Chris F.A. Johnson, author <http://shell.cfajohnson.com/>
===================================================================
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
===== My code in this post, if any, assumes the POSIX locale =====
===== and is released under the GNU General Public Licence =====