将find过滤添加到数组

array=($(find . -name "*.txt"))
for i in "${array[@]}"; do echo $i; done
原文地址:https://www.cnblogs.com/xiaoyaoren/p/9790918.html