Just curious if anyone had written a function that combined the "du" and "ls" command so you get a list of directories and files in the current directory, each with a file size. I googled a bit but didn't find one. I didn't want to re-invent the wheel if it had already been done.
If you're feeding its output into something else, find is usually better. It's like an ls that defaults recursive, with configurable filters, that can be told to automatically run what you want for every matching it finds.
To break it down:
All one command with no pipes, when with ls you'd need to ls -l and do some complex grepping/sedding/awking to get only the dirs, and then get the filename out of that mess.