Last active
February 2, 2022 03:29
-
-
Save vinaysshenoy/bfd6310eeada9a2ddb64f285f1a957d3 to your computer and use it in GitHub Desktop.
macOS list files by size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -print0 | xargs -0 ls -l | sort -k5,5rn > ~/files.txt | |
find -E . -regex '.*\.(jpg|png)' -print0 | xargs -0 ls -l | sort -k5,5rn | |
find -E . -regex '.*\.(jpg|jpeg|png|hdr|exr)' -print0 | xargs -0 stat -f "%N,%z" > ./files.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment