filetest1

来自「Unix Shell编程权威指南的配套源代码,书是好书,不过习题没有答案,要自己」· 代码 · 共 22 行

TXT
22
字号
#!/bin/tcsh -f# Scriptname: filetest1if ( -e file ) then   echo file existsendifif ( -d file ) then   echo file is a directoryendifif ( ! -z file ) then   echo file is not of zero lengthendifif ( -r file && -w file && -x file) then   echo  file is readable and writable and executable.endifif ( -rwx file ) then   echo file is readable and writable and executable.endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?