I just wrote a bash script to print the size and the name of all the files in a directory. It's quite simple:
du -h *
It prints first the size of the file and then the name. But now I wonder how can I reverse the order of the output: print first the name and then the size of the file.