Filename brace expansion in scripts

Mark mhullrich at gmail.com
Thu Nov 18 18:23:13 UTC 2010


On Thu, Nov 18, 2010 at 7:48 AM, Colin Law <clanlaw at googlemail.com> wrote:
> I have a problem with filename expansion in a script and am having
> difficulty understanding what is going on.
> In a terminal, if I enter
> ls {a*,b*}
> I see all files beginning with a or b (I know this is not the best way
> of doing that but it is a simple example of the problem I am seeing).

Although this is not what you were asking about, have you considered
using [ab]* instead?




More information about the ubuntu-users mailing list