运维网's Archiver
论坛
›
Shell/Powershell
› shell脚本备忘
吸毒的虫子
发表于 2018-8-25 14:06:33
shell脚本备忘
#!/bin/sh # test
echo -n "are you sure to delete these files?"
read ANS
case $ANS in
y|Y|yes|Yes)
rm a.txt
;;
n|N|no|No)
exit 0
;;
esac
页:
[1]
查看完整版本:
shell脚本备忘