Thomas Guettler wrote: >>> I'm very dubious about adding this as an option. >>> Do you really think an option is warranted for this, >>> considering you can already get the desired behavior >>> with a small wrapper, as I demonstrated: >>> >> The wrapper is awkward, but it's better than a new option. >> >> So probably best to do nothing here as you suggest. >> >> > > I know that it easy to use the 'du -a' and pipe the output to a > check if it is a directory. But if you have a lot of files, it > really matters if you touch a files twice. > > And this solution does not count the size of directories. > > find / -xdev -printf "%k\t%p%y\n" | > sed 's/d$/\//;t; s/.$//;' | > LC_ALL=C sort -rn -k1,1
Oops true. How about (I realize this is getting protracted): find / -xdev -printf "%p%y\n" | sed 's/d$/\//;t; s/.$//;' | tr '\n' '\0' | xargs -r0 du -s | LC_ALL=C sort -rn -k1,1 thanks, Pádraig. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils