2015-11-06 61 views

回答

2

只需使用一个process substitution

while IFS= read -r name; 
do 
    # do things with $name, which contains the name of the file 
done < <(find -type f -name "*.java")