blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

commit d56f22e0452071ef9f807bbed5e3e8646eb142e1
parent 2d7835c74f8e95ce23e12b2527d01729b2cf5944
Author: Peter <peter@minskio.co.uk>
Date:   Fri,  2 Oct 2026 09:05:22 +0100

New version of this script released

Diffstat:
Mcontent/posts/calculating-relative-average-subdirectory-filesizes.md | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/content/posts/calculating-relative-average-subdirectory-filesizes.md b/content/posts/calculating-relative-average-subdirectory-filesizes.md @@ -1,6 +1,7 @@ --- title: "Calculating relative average subdirectory filesizes" date: 2020-08-21T12:37:00 +lastmod: 2026-09-30T22:29:24 tags: [ "Guides", "Linux", "Media", "Snippets", "Software" ] --- @@ -18,4 +19,13 @@ What this does is: - Divides the two to get the average - Prints the list, then reverse sorts it -Giving you your results. Ta~da! -\ No newline at end of file +Giving you your results. Ta~da! + + +**Update 2026-09-30** +I've pretty much rewritten this whole snippet to: +* Fix an issue with files in your working directory breaking the division calculation +* Allow you to specify any directory (defaulting to `.`) +* Properly render the text in equally spaced columns +* Render filesizes as human readable MB, GB, etc. +* Integrate all of the above [into my NixOS setup](https://github.com/breadcat/nix-configs/blob/main/scripts/average-relative.nix)