☆☆☆★☆☆☆

唯有努力才能活成自己想要活成的样子

导航

2020年11月20日 #

shell for in 用法总结

摘要: 1、遍历按空格分隔的字符串: #!/bin/bash s="111 222 333" for server in $s do echo$s done 2、遍历字符串列表、用空格分隔: #!/bin/bash for mm in a b c do echo$mm done 3、遍历参数列表: #!/b 阅读全文

posted @ 2020-11-20 14:28 Yr-Zhang 阅读(2812) 评论(0) 推荐(0) 编辑