- Write a function that walks through a directory tree and collects the pathnames and sizes of all files of a certain types.
- Write a function that sorts the results of the first function according to the size of the files.
- Combine both functions in a script which can be called from the bash.
- Optional: limit the resulting list to the top10 sizes
- Optional: automatically compress the largest files