go: #find . -type f \( -name '*.wmv' -o -name '*.avi' \) -print0 | ./find-prefixes find . -type f -print0 | ./find-prefixes