A robust, dependency-free bash script that recursively searches a directory to find the largest files. It is designed to be safe with complex file names (like those containing spaces) and automatically respects your project's .gitignore rules.
- Automatic
.gitignoreParsing: Automatically detects and ignores files/directories listed in a.gitignorefile located in the target directory. - Custom Ignore Flags: Pass specific directories or patterns to ignore on the fly using
--ignore. - Space-Safe: Uses dynamic bash arrays and tab-delimiters to ensure files and directories with spaces in their names do not break the script.
- Human-Readable Output: Converts byte counts into highly readable formats (B, KB, MB, GB).
- Absolute Paths: Automatically resolves and displays the absolute path of the files for easy locating.