[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Did I found a bug in "ls"?
From: |
Erik Auerswald |
Subject: |
Re: Did I found a bug in "ls"? |
Date: |
Sun, 8 Mar 2009 17:30:47 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hi,
On Sun, Mar 08, 2009 at 04:15:16PM +0100, 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, so I am using a pipe and sed, to make it comfortable:
You could use
find . -type d -print0 | xargs -0 ls
to solve the problem of spaces in folder names.
Regards,
Erik