⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filecheck

📁 UNIX[1].shell范例精解(第4版)_code
💻
字号:
#!/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 + -