I love ZFS, but I suddenly found out last night that I
have lost the ability tto do a 'du' on a directory to work out if it will
fit onto a CD or not :-)

I have created a shell script, /usr/local/bin/dirsize :


#!/bin/sh
find $1 -type f -ls | awk '{j += $7} END {print j}'



Usage: dirsize <path>

_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to