example02.03

来自「UNIX[1].shell范例精解(第4版)_code」· 03 代码 · 共 21 行

03
21
字号
#!/bin/sh if [ -f file ]  then	echo file existsfi if [ -d file ]   then 	 echo file is a directoryfiif [ -s file ]   then	 echo file is not of zero length fiif [ -r file -a -w file ]  then	 echo file is readable and writeablefi

⌨️ 快捷键说明

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