11智能在线
新记
linux编写shell脚本实现查询 /home/test文件夹下是否存在a这个文件
存在则输出存在,否则输出不存在
举报该文章
相关建议 2015-05-10
if [ -f "/home/test/a" ]; then
echo myfile exists
else
echo myfile dose not exists
fi
[ -e FILE ] å¦æ FILE åå¨å为çã
[ -f FILE ] å¦æ FILE åå¨ä¸æ¯ä¸ä¸ªæ®éæ件å为çã
温馨提示:内容为网友见解,仅供参考
当前网址:
https://11.t2y.org/zz/pqff7q4vqvp4827mmq7.html
其他看法
无其他回答
相似回答
大家正在搜
相关问题
linux下利用test命令的判断文件属性的功能编写一个sh...
在linux下编写shell脚本,判断当前目录下所有文件类型...
LINUX中,创建文件夹、文件命令及清除命令。
linux 编写一个shell脚本文件,实现以下功能
shell脚本判断文件夹下是否有文件
关于linux中shell脚本如何判断文件名称中是否含有某字...
linux下编写以个shell脚本,实现对oracle数据库...
linux下编写一个shell脚本 每天0点 定时执行某一可...