About me I've been a computer programmer since I first started typing in program listings on a Commodore Vic 20 when I was about 8. My hobbies include electronics, CNC manufacturing, photography, beer and winemaking.
I live with my wife and lots of left-over parts from unfinished projects in Lincoln, Nebraska, USA.]
Blog
4 April 2012, 12:54 UTCdusub: Subtract two 'du'-style listings
Life is a constant war against the limited size of backup media. Here
is my next weapon in the fight: dusub. Save a du listing
today, then find out tomorrow or next week what's been growing:
dusub olddu newdu
or
du … | dusub olddu
Positive numbers in the output represent an item that grew since olddu;
negative numbers represent a decrease in size since olddu.
Version 2 knows about "du -h"-style listings.
dusub is useful with sorttop:
du … | dusub olddu | sorttop
Files currently attached to this page:
dusub-v2.py 2.4kB dusub.py 1.4kB
dusub: Subtract two 'du'-style listings
Life is a constant war against the limited size of backup media. Here is my next weapon in the fight: dusub. Save a du listing today, then find out tomorrow or next week what's been growing:
dusub olddu newduor
du … | dusub oldduPositive numbers in the output represent an item that grew since olddu; negative numbers represent a decrease in size since olddu.
Version 2 knows about "du -h"-style listings.
dusub is useful with sorttop:
du … | dusub olddu | sorttop
Files currently attached to this page:
| dusub-v2.py | 2.4kB |
| dusub.py | 1.4kB |
All older entries
Website Copyright © 2004-2024 Jeff Epler