for i in $(echo $(cat /etc/pcdn/pcdn.conf |grep nics |awk '{print $2}') |awk 'BEGIN{FS=","; OFS=""; ORS=""}{for(x=1;x<=NF;x++){print $x"\n"}}'); do echo $i done
for i in $(echo $(cat /etc/pcdn/pcdn.conf |grep nics |awk '{print $2}') |awk 'BEGIN{FS=","; OFS=""; ORS=""}{for(x=1;x<=NF;x++){print $x"\n"}}');
do echo $i
done
标签:脚本,BEGIN,shell,grep,OFS,awk,pcdn
From: https://www.cnblogs.com/fjx2013614/p/17187829.html