?? filecheck
字號:
#!/bin/tcsh -f# Scriptname: filecheck# Usage: filecheck filenamealias Usage 'echo " Usage: $0 filename\!*" ; exit 1'alias Error 'echo " Error: \!* "; exit 2'set file=$1if ( $#argv == 0 ) then Usageendifif ( ! -e $file ) then Error "$file does not exist"endifif ( -d $file ) then echo "$file is a directory"else if (-f $file) then if ( -rx $file ) then # nested if construct echo "You have read and execute permission on $file" endifelse print "$file is neither a plain file nor a directory."endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -