organize files by filesize in mac osx

organize files by filesize in mac osx

all files, not just one folder
LVL 1
rgb192Asked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
ls -l | sort -nk5
0
 
RapidDelpConnect With a Mentor Commented:
There are many ways to do it, two of them are:

1. Get spotlight to list all of the files

type anything into the spotlight window, then have it show all files and change the search criteria.  Then you can sort by size.

2. Use a combination of find, xargs and grep

 find / -type f -size +10 -print0 | xargs -0 ls -s | sort -n > file 

Open in new window

 the
 . . . -print0 | xargs -0 . . . 

Open in new window

is to account for file names with spaces.
0
 
strungConnect With a Mentor Commented:
0
 
rgb192Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.