#!/bin/bash for file in `find -name "*.avi"` do ./myscript $file done
谁能帮我?
谢谢
find -name "*.avi" -print0 | xargs -0 -n 1 echo
您不必在xargs中回显:
find -name "*.avi" -print0 | xargs -0 -n 1 ./myscript