Closed vieyahn2017 closed 5 years ago
shell脚本 过滤出对应目录下的所有png文件名
str=("path1" "path2" "path3") for s in ${str[@]}; do for file in `find "$s" -name *.png`; do fileName=${file##*/} echo ${fileName%%.*} >> extra done done
for循环里面还有问题
shell脚本 过滤出对应目录下的所有png文件名