|
find the 5o largest files in a directory
I'm trying to find the 50 largest file in a directory named /sasdb and its' subdirectories. I'm using the find command and a pipe to awk
Not sure if I'm actually getting the largest files from this directory and its subdirectories. Here is the code I used...
find /sasdb -ls | awk '{print $0}' | sort -n >> my.lst
tail -50 my.lst >> largest_files.lst
Any suggestions would be greatly appreciated.
Thank You
|