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的值,根据“,”分割创建目录
时间: 2024-10-20 03:32:09
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的值,根据“,”分割创建目录