bug-coreutils
[Top][All Lists]
Advanced

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

Re: Did I found a bug in "ls"?


From: Philip Rowlands
Subject: Re: Did I found a bug in "ls"?
Date: Sun, 8 Mar 2009 16:44:51 +0000 (GMT)
User-agent: Alpine 1.10 (DEB 962 2008-03-14)

On Sun, 8 Mar 2009, Major Péter wrote:

I would like to list some folders with they block-sizes, but only specific folders am I interested.
So I would like to use find to list the correct folders for me:
ls `find . -type d -user foo -name "*"`
this is not working because ls can't find folders with spaces in there name,

find uses an implicit "-print" argument, but in this case please look at find's "-print0" option. This version of the above command should work:

$ find . -type d -user foo -print0 | xargs -0 ls
(-name "*" is redundant, as everything matches)

I'm still not sure what you're referring to by folders with block-sizes? Would the du command be helpful here?


Cheers,
Phil




reply via email to

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