随笔分类 -  shell 脚本学习

初学shell脚本把自己迷惑的地方或者觉得有用的资料记录下来
比较与测试
摘要:一般情况我们使用if、if else 以及逻辑运算符来执行测试,而用一些比较运算符来比较数据项。另外,也可以用test来测试!if条件:if conditionthencommandsfielse if和else:if conditionthencommandselif conditionthenc... 阅读全文
posted @ 2014-08-11 15:07 逸枫_1987 阅读(212) 评论(0) 推荐(0)
IFS解惑
摘要:一、IFS 介绍 Shell 脚本中有个变量叫 IFS(Internal Field Seprator),内部域分隔符。完整定义是The shell uses the value stored in IFS, which is the space, tab, and newline charact... 阅读全文
posted @ 2014-08-11 13:58 逸枫_1987 阅读(225) 评论(0) 推荐(0)