#!/bin/bash
#                      /usr/local/bin/duleted
# http://crystalfaeries.net/posix/bin/duleted
# http://www.commandlinefu.com/commands/view/14696/total-space-used-by-open-but-deleted-files
sudo lsof -nP | awk '/deleted/ { sum+=$8 } END { print sum }'


syntax highlighted by Code2HTML, v. 0.9.1