Saturday, 24 August 2013

Sorting files according to size recursively

Sorting files according to size recursively

how to scan a folder recursively and find the largest files in the folder,
and sort them by size. I have tried using ls -R -S but it tends to list
the directories as well I need to scan the folders and print the files in
the folder and sub folders in sorted manner.
I tried using find but coudn't find a suitable solution.

No comments:

Post a Comment