运维网's Archiver
论坛
›
Shell/Powershell
› shell 脚本添加参数小实例
阿娇开发978
发表于 2018-8-28 09:14:40
shell 脚本添加参数小实例
#/bin/bash
case $@ in
-h)
echo 'hi,this is hlep...'
;;
-c)
echo 'chicozy'
;;
-z)
echo 'zhouyin'
;;
--help)
echo 'hi,this is hlep...'
;;
esac
页:
[1]
查看完整版本:
shell 脚本添加参数小实例