help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Glob star pattern does not match files beginning with a


From: Michael Convey
Subject: Re: [Help-bash] Glob star pattern does not match files beginning with a period
Date: Wed, 15 Jul 2015 12:58:03 -0700

​I've done some more testing of this and found no difference between
​ls -dl .[!.]?*
and
ls -dl .[!.]*

In both cases the . directory does not appear in the output. Why doesn't it
appear in the second command? Does [!.] require a second character?

On Mon, Jul 13, 2015 at 3:01 PM, Michael Convey <address@hidden> wrote:

> On Mon, Jul 13, 2015 at 2:55 PM, Evan Gates <address@hidden> wrote:
>
>
>> Almost. You want .[!.]* and ..?* so you don't miss files like ..foobar
>
>
> Good point. So, really the full command should be:
> ls -d * .[!.]?*
> ​ ..?*
>
> ​
>


reply via email to

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