mathiasbynens/dotfiles — Issue #32: Empty trash for all external mounted volumes
Author: mathiasbynens
Created: 2011-12-28 18:47:56+00:00
State: open

I.e. `rm -rfv /Volumes/*/.Trashes` but with a filter so it only targets external volumes (e.g. not the main HDD).

@janmoesen suggested to use something like `system_profiler SPUSBDataType -xml` to get a list of USB-connected volumes.