摘要: 语法格式find [path] [options] [tests] [actions]options -depth Process each directory's contents before the directory itself. -follow 跟随链接符号 -maxdepths 最多搜索N层目录 -mount 不搜索其他文件系统中到目录tests -name pattern 文件名匹配正则模式pattern,pattern尽量用引号 -newer otherfile 比otherfile新 -type f 文件类型是普通... 阅读全文
posted @ 2012-07-10 20:23 kimiz 阅读(130) 评论(0) 推荐(0)
摘要: 管道和重定向1 重定向输出>2 重定向输入<3 管道|变量1 用户变量2 环境变量3 参数变量 参数变量 说明 $0 shell脚本的名字 $$ shell脚本的进程号 $1, $2, ... 各个参数 $# 参数个数 $* 列出所有参数 $@ 列出所有参数(不受IFS改变) 条件测试命令test或[字符串比较 string1 = string2 string1 != string2 -n string 字符串不为空,则为真 -z st... 阅读全文
posted @ 2012-07-10 19:56 kimiz 阅读(133) 评论(0) 推荐(0)