运维网's Archiver
论坛
›
Shell/Powershell
› shell脚本练习(12.9)
小乔
发表于 2018-8-27 08:29:10
shell脚本练习(12.9)
查找/root/目录下是否存在该文件
vim file.sh
#!/bin/bash
#written by lizheng
#about find file
echo "enter a file"
read a
if test -e /root/$a
then echo "the file is exist!"
else echo "the file is not exist!"
fi
页:
[1]
查看完整版本:
shell脚本练习(12.9)