From b816e25caa2efaeef6fde7faa1d40f06c2c3485f Mon Sep 17 00:00:00 2001 From: BeauTroll <-> Date: Thu, 18 Dec 2025 16:07:51 +0100 Subject: [PATCH] Add column headers to disk-usage output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include the column headers (Original size, Compressed size, Deduplicated size) in the disk-usage output for better readability. Changes: - Use grep -B1 to capture header line before "All archives" - Display both header and data lines 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- scripts/disk-usage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/disk-usage.sh b/scripts/disk-usage.sh index 4a858a9..a3255b3 100755 --- a/scripts/disk-usage.sh +++ b/scripts/disk-usage.sh @@ -27,7 +27,7 @@ echo "" # Statistiques du repository Borg echo -e "${YELLOW}Espace utilisé par le repository Borg (toutes archives):${NC}" -borgmatic info 2>/dev/null | grep "All archives" | grep GB | head -1 +borgmatic info 2>/dev/null | grep -B1 "All archives" | grep -E "Original size|All archives" | head -2 echo ""