Every time a filesystem is running out of space and I need to find something to delete, I end up googling the syntax for the find command to make sure it stays off NFS and doesn’t cross mountpoints. Finally, I decided to write this basic script.

Here’s the script. And a few examples on how to use it:

Output fields: