Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the '...and partitions...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
...and partitions...
Authored by: mervTormel on Feb 28, '03 03:17:34PM

$ sudo du -sk ~/.trash /Volumes/*/.trashes/ | \
awk "{sum += \$1} END{print sum}" ${1+"$@"}

[ Reply to This | # ]
...and partitions...
Authored by: Accura on Mar 01, '03 03:58:31AM

sudo du -skc ~/.Trash/ /.Trashes/ /Volumes/*/.Trashes/ | grep total | awk '{print $1}'

i also wrote a basic konfabulator widget to do this (i was bored), it needs some one to do the art work but ill post the code/widget if any one wants it. its faster than using the apple script. is the konfabulator home page.

Konfabulator is a program that lets you run widgets (like weather, iTunes remotes, wrapers for cgi utils) that are writen in xml and java script. The widgets are easy to write.

"The time has come," the walrus said. "To talk of many things..."

[ Reply to This | # ]