当前位置:
首页 >
[sh]shell案例
发布时间:2025/7/14
46
豆豆
生活随笔
收集整理的这篇文章主要介绍了
[sh]shell案例
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
调用同目录下的ip.txt内容:
路径[root@lanny ~]# pwd /roottxt文件[root@lanny ~]# cat ip.txt 10.1.1.1 10.1.1.2 10.1.1.3脚本:[root@lanny ~]# cat diaoyong.sh for i in `cat ip.txt`;do echo $i done执行:[root@lanny ~]# sh diaoyong.sh 10.1.1.1 10.1.1.2 10.1.1.3
总结
以上是生活随笔为你收集整理的[sh]shell案例的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 最短路算法整理 1557 热浪
- 下一篇: OpenStack Austin 峰会观