Linux Shell : Test命令参数解析
来源:互联网 发布:搜狗算法面试题 编辑:程序博客网 时间:2024/06/07 02:23
http://209.85.173.132/search?q=cache:56H3TqbWaWwJ:blog.csdn.net/wwalpha/archive/2006/10/23/1347584.aspx+linux+shell+test&hl=zh-CN&ct=clnk&cd=3
格式: test conditions
test -n string : string 不为空
test -z string : string 为空
test int1 -eq int2 : int1 == int 2
test int1 -ne int2 : int1 != int2
test int1 -gt int2 : int1 > int2
test int1 -ge int2 : int1 >= int2
test int1 -lt int2 : int1 < int2
test int1 -le int2 : int1 <= int2
test -r filename : 用户对文件filename有读权限
test -w filename : 用户对文件filename有写权限
test -x filename : 用户对文件filename有可执行权限
test -f filename : 文件filename为普通文件
test -d filename : 文件filename为目录
test -c filename : 文件filename为字符设备文件
test -b filename :文件filename为块设备文件
test -s filename : 文件filename大小不为零
test -t fnumb : 与文件描述符fnumb(默认值为1)相关的设备是一个终端设备
test ! -s empty : empty 为空
test -a : And
test -o : Or
- Linux Shell : Test命令参数解析
- Linux Shell : Test命令参数解析
- Linux Shell : Test命令参数解析
- linux Shell : Test命令参数解析
- Linux Shell : Test命令参数解析
- Shell Test命令参数解析
- Shell Test命令参数解析
- Shell Test命令参数解析
- Linux Shell Test 命令
- Linux shell test,[...] 命令
- LINUX SHELL中的TEST命令
- LINUX SHELL中的TEST命令
- shell test和find命令实例解析
- Linux shell 的 test 命令用法详解
- Linux test 脚本 shell 命令详解
- Linux shell 的 test 命令用法详解
- Linux shell 的 test 命令用法详解
- Linux shell 的 test 命令用法详解
- 让Apache拒绝网络流氓蜘蛛
- ajax updatepannel中response.write()问题
- color值存入数据库中,或二次开发接口使用问题
- 全局变量的安排
- C++编码规范
- Linux Shell : Test命令参数解析
- SQLSERVER 数据类型转换函数
- sun.net.ftp.FtpClient的函数说明
- java实现的ftp文件上传例题
- 如何由dos向windows转变
- 如何才算掌握Java(J2SE篇
- C#,winform,vs2005中,如何能用代码控制,使DateTimePicker自动弹出选择日期的面板?
- 佛语珠玑,生之彻悟
- 笔记本升级轶事