摘要: 摘自:https://www.cnblogs.com/fjping0606/p/4573536.html 一 、IFS的介绍 Shell 脚本中有个变量叫IFS(Internal Field Seprator) ,内部域分隔符。完整定义是The shell uses the value stored 阅读全文
posted @ 2020-03-26 21:12 LiuYanYGZ 阅读(361) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://blog.csdn.net/peterxiaoq/article/details/77247547 shell中for循环的默认分隔符是:空格、tab、\n 需求是只以\n作为分隔符 shell for循环以\n作为分割符, 方式一: 文件aa.sh #!/bin/bash I 阅读全文
posted @ 2020-03-26 21:06 LiuYanYGZ 阅读(2476) 评论(0) 推荐(0) 编辑