[Top][All Lists]

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

bug#11228: Bug in ls?

From: Chris Jones
Subject: bug#11228: Bug in ls?
Date: Thu, 12 Apr 2012 02:53:26 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Wed, Apr 11, 2012 at 10:49:41PM EDT, Eric Blake wrote:

> tag 11228 notabug
> thanks
> On 04/11/2012 06:13 PM, dfm wrote:


> Indeed - POSIX requires that file names beginning with '.' do not
> match a glob starting with '*'; if you want to list such files, you
> have to explicitly match the leading dot.

Is there any way you can list dot & non-dot files whose names share
a pattern in one pass:

| $ tree -a /tmp/z
|   /tmp/z/
|   ├── bk
|   ├── .bk
|   ├── .bkn
|   └── bkx

Or move, copy, delete, etc.

I tend to do stuff like:

| $ find /tmp/z -name '*bk*' -ls
| $ mv $(find /tmp/z1 -name '*bk*') /tmp/z2 .. etc.

But that's hardly elegant and since things can get rather complicated,
it could even prove dangerous when you're doing something potentially


P.S. Just following up on the existing thread but this hardly belongs to
this mailing list. Is there a help-coreutils for issues that are not
related to a suspected bug?


reply via email to

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