I wanted to find the 10 largest files in my repository. The script I came up with is as follows:
REP_HOME_DIR= max_huge_files=
You can also use du - Example: du -ah objects | sort -n -r | head -n 10 . du to get the size of the objects, sort them and then picking the top 10 using head.
du
du -ah objects | sort -n -r | head -n 10
sort
head