duext — Disk usage by extension
Small Perl script similar to the du(1) command, except reporting by file extension. Kind of like a poor, primitive, text-only version of QDirStat or WinDirStat.
Download and Install
Download: duext.pl
It is a Perl script. Do whatever you need to do to run a Perl script on your system.
On *nix, I name it just "duext", make it executable (chmod a+rx duext) and keep it in my PATH.
On Microsoft Windows, you'll prolly need to name it "duext.pl" for the system to recognize it as a Perl script.
Manual Page
NAME
duext - analyze and report disk usage by file name extension
SYNOPSIS
duext [-h] [-n] [DIRECTORY]...USAGE
- Give directory(ies) to search as arguments
- Defaults to current directory if no arguments
- Currently just reports count and size; customize to taste
- Written for *nix but may work on other platforms
OPTIONS
-h reports using human-friendly scale and suffix-n considers all-numeric extensions as one extension type
HISTORY
- 2010MAR10: Initial release
- 2010MAR11: Cleaned up code/docs; more summary stats; default to CWD; -h and -n options
LEGAL
- Written by Ben Scott <http://www.dragonhawk.org/>
- Free to use/change/distribute in any way for any purpose
- No warranty of any kind -- use at your own risk
Last modified: $Date: 2022/12/10 02:45:02 $ (YYYY/MM/DD UTC)