标签:pre shel $nf ls -l done ... int 文件 col
1.读取目录下的文件,逐个给命令运行
dir=$(ls -l ./ |awk ‘!/^d/ {print $NF}‘ |grep -i "sam" ) for i in $dir do ... done
Shell编程常用
原文地址:https://www.cnblogs.com/Surprisezang/p/10884618.html