标签:awk
less 1
a=/nihao/hao,/woshi/xing/,/zhende/sfd/xcv
less 1 | grep ‘a‘ |awk -F "[ =,]*" ‘{for(i=2;i<=NF;++i) printf $i " "}‘| xargs mkdir -p
获取变量a的值,根据“,”分割创建目录
本文出自 “freeterman” 博客,请务必保留此出处http://myunix.blog.51cto.com/191254/1673850
标签:awk
原文地址:http://myunix.blog.51cto.com/191254/1673850