shell脚本判断文件存在目录执行读写字符 上传者:wazping 2021-01-16 17:40:39上传 PDF文件 21KB 热度 35次 #!/bin/bash while : do read -ep 请输入一个绝对路径: file read -ep 请输入判断的文件类型: type case $type in b) if [ -b $file ];then echo 是一个block文件! else echo 不是一个block文件! fi ;; c) if [ -c $file ];then echo 是一个字符设备文件! else 下载地址 用户评论 更多下载 下载地址 立即下载 用户评论 发表评论