Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Windows98/ME > test conditions provided by the shell(摘要)
【标  题】:test conditions provided by the shell(摘要)
【关键字】:test,conditions,provided,by,the,shell
【来  源】:http://www.cublog.cn/u/12054/showart.php?id=114911

test conditions provided by the shell(摘要)

Your Ad Here The tests below are test conditions provided by the shell:

  • -b file = True if the file exists and is block special file.
  • -c file = True if the file exists and is character special file.
  • -d file = True if the file exists and is a directory.
  • -e file = True if the file exists.
  • -f file = True if the file exists and is a regular file
  • -g file = True if the file exists and the set-group-id bit is set.
  • -k file = True if the files' "sticky" bit is set.
  • -L file = True if the file exists and is a symbolic link.
  • -p file = True if the file exists and is a named pipe.
  • -r file = True if the file exists and is readable.
  • -s file = True if the file exists and its size is greater than zero.
  • -s file = True if the file exists and is a socket.
  • -t fd = True if the file descriptor is opened on a terminal.
  • -u file = True if the file exists and its set-user-id bit is set.
  • -w file = True if the file exists and is writable.
  • -x file = True if the file exists and is executable.
  • -O file = True if the file exists and is owned by the effective user id.
  • -G file = True if the file exists and is owned by the effective group id.
  • file1 –nt file2 = True if file1 is newer, by modification date, than file2.
  • file1 ot file2 = True if file1 is older than file2.
  • file1 ef file2 = True if file1 and file2 have the same device and inode numbers.
  • -z string = True if the length of the string is 0.
  • -n string = True if the length of the string is non-zero.
  • string1 = string2 = True if the strings are equal.
  • string1 != string2 = True if the strings are not equal.
  • !expr = True if the expr evaluates to false.
  • expr1 –a expr2 = True if both expr1 and expr2 are true.
  • expr1 –o expr2 = True is either expr1 or expr2 is true.
shell脚本编写问题,`和'的区别使用:【上一篇】
shell命令:【下一篇】
【相关文章】
  • shell脚本编写问题,`和'的区别使用
  • 用shell写网页时遇到的问题
  • shell颜色控制相关资料
  • Vmware下RedHat AS 2.1集群配置StepbyStep
  • 第三章 shell的输出与输入
  • POP3 Client ClassLibrary By .Net FrameWork 2.0
  • Ruby 和 .NET
  • Unix编程/应用问答中文版 ---20.shell script问题
  • SHELL十三问之六:exec 跟 source 差在哪?
  • SHELL十三问之七:( ) 与 { } 差在哪?
  • 【随机文章】
  • 解决ASP.NET服务器控件造成的刷新问题
  • 在FREEBSD4.10上安装Helix服务器(转贴)
  • 加快你的QQ速度
  • Windows程序设计——笔记(5)
  • JSP论述和音乐店设计
  • MSN Messenger不能正常登录的原因及解决
  • Flash MX 新特性详解(五)
  • NS2是什么?
  • PReport 中式报表
  • QuickTime初始化指南
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.