[Shell]For大括号{}
作者:互联网
1. Shell for循环跳跃不连续数
for i in {"172.15.7."{101..106},"172.15.7."{109..111},"160.168.103."{191..192}};do ssh ${i} "date";done
# 进一步整合
for i in {"172.15.7."{{101..106},{109..111}},"160.168.103."{191..192}};do ssh ${i} "date";done
END
标签:Shell,..,191,192,172.15,done,大括号 来源: https://www.cnblogs.com/leoshi/p/15431693.html