2015-11-06 62 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")