REAL file sizes on Mac OS X
I'm searching for exceptions containing logic, not only
class ... extends ..., so I searched for a way to get the real file size.
What didn't work
# only lists directories find . -type f | du | grep Exception # lists files in block size (4kb) which isn't accurate enough find . -type f | du -a | grep Exception
What I ended up with:
find . -type f -print0 | xargs -0 stat -f "%z - %N" | grep Exception | sort