I have a directory called root
. It has deeply nested subdirectories. In these subdirectories, there are a bunch of files. I want to find the biggest files in root
.
I don't want to find directories at all. I don't care about the size of the largest directory, I just want to find the largest files.
root
|
- subdir1
|
- small file 1
- large file 1
- small file 2
... lots more files
- subdir2
|
- small file 3
- large file 2
I want to print out large file 1
and large file 2
. I don't want it to print out anything about root
, subdir1
, or subdir2
, even if they're bigger than large file 1
or 2
. That's just noise to me.
How do I do that on a mac on the command line?