shell 脚本
baozi1159
珍惜时间,远离百度。
展开
-
shell脚本的各种判断
1、字符串判断 str1 = str2 当两个串有相同内容、长度时为真 str1 != str2 当串str1和str2不等时为真 -n str1 当串的长度大于0时为真(串非空) -z str1 当串的长度为0时为真(空串) str1 当串str1为非空时为真 2、数字的判断 int1 -eq int2转载 2012-11-06 11:20:08 · 395 阅读 · 0 评论 -
linux sed命令参数及用法详解 awk实例
百度,百度文库 bash中字符串的处理 http://linux.chinaitlab.com/SHELL/534197.html Linux下Bash的变量使用,echo,read,declare,typeset,array, http://blog.csdn.net/del1214/article/details/6843447转载 2012-11-22 09:02:42 · 597 阅读 · 0 评论