[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: possible bug of ls in Redhat Enterprise Linux AS 4 Update 2
From: |
Eric Blake |
Subject: |
Re: possible bug of ls in Redhat Enterprise Linux AS 4 Update 2 |
Date: |
Fri, 23 Dec 2005 06:02:01 -0700 |
User-agent: |
Mozilla Thunderbird 1.0.2 (Windows/20050317) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to James Youngman on 12/22/2005 11:45 PM:
>
> No. To find out why, do this in the same directory:
>
> echo ls -R *.xml
>
> We should really add this question (and an answer) to the FAQ list.
As a first cut at the answer, try this instead:
find . -name '*.xml' | xargs ls
(Of course, due to potential filename spacing issues, it is safer to use
the GNU version of findutils, in which case you can do something like:
find -name '*.xml' -print0 | xargs --null ls
)
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFDq/VJ84KuGfSFAYARApxlAJ4u5SnE3DbtjKlgxdhgfL8YrpewkgCgqCZC
OZF7rtL/KT8pAnwpPAMc35U=
=n1+Q
-----END PGP SIGNATURE-----