Re: Did I found a bug in ls?

2009-03-10 Thread Major Péter
Hi, I need to write a script, which will print out on the standard output, that each user how many disk space (in blocks) are using in a directory (and subdirectories, the directory is a parameter). So an example output would look like this: root:101711 user1:940258 The main problem with du

Re: Did I found a bug in ls?

2009-03-10 Thread Philip Rowlands
On Sun, 8 Mar 2009, Major P?ter wrote: The main problem with du is, that it doesn't care with users, so I need a find before (using the -user will solve the problem). But I can't use du `find ...` because it will contain the subfolders too, so it will duplicate, and the measure won't be

Re: Did I found a bug in ls?

2009-03-10 Thread Major Péter
Sorry about the off-topic. But here is some list-related problems of mine: ls: If it has a null parameter e.g. in find blah -print0 | xargs -0 ls find gives no hit, the ls writes on the output (maybe on error output, I'm not sure) a message, that incorrect argumentum has camed, BUT it still

Re: Did I found a bug in ls?

2009-03-10 Thread Philip Rowlands
On Tue, 10 Mar 2009, Major Péter wrote: But here is some list-related problems of mine: ls: If it has a null parameter e.g. in find blah -print0 | xargs -0 ls find gives no hit, the ls writes on the output (maybe on error output, I'm not sure) a message, that incorrect argumentum has camed,

Re: Did I found a bug in ls?

2009-03-08 Thread Philip Rowlands
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

Re: Did I found a bug in ls?

2009-03-08 Thread James Youngman
On Sun, Mar 8, 2009 at 3:15 PM, Major Péter majorpe...@sch.bme.hu wrote: Hi! 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 *` -name * is