#!/bin/sh
echo "enter a file name:"
read a
if test -e /root/$a
then echo "the file is exist!"
else echo "then file is not exit!"
fi
转载于:https://blog.51cto.com/6850242/1339702
#!/bin/sh
echo "enter a file name:"
read a
if test -e /root/$a
then echo "the file is exist!"
else echo "then file is not exit!"
fi
转载于:https://blog.51cto.com/6850242/1339702