shell脚本 过滤出对应目录下的所有png文件名

来源:互联网 发布:手机淘宝自动挂机赚钱 编辑:程序博客网 时间:2024/06/14 03:44
str=("path1" "path2" "path3")for s in ${str[@]}; dofor file in `find "$s" -name *.png`; do        fileName=${file##*/}        echo ${fileName%%.*} >> extra    donedone

原创粉丝点击