您现在的位置是:网站首页> 编程资料编程资料
shell获取命令行参数示例分享_linux shell_
2023-05-26
314人已围观
简介 shell获取命令行参数示例分享_linux shell_
复制代码 代码如下:
#! /bin/bash
while getopts a:bc opt
do
case $opt in
a)
echo "aaa"
echo $OPTARG
b)
echo "bb"
c)
echo "ccc"
*)
echo "error"
esac
done
您可能感兴趣的文章:
相关内容
- vtune自动安装脚本分享_linux shell_
- 获取站点的各类响应时间(dns解析时间,响应时间,传输时间)_linux shell_
- shell脚本转发80端口数据包给Node.js服务器_linux shell_
- centos中mysql备份数据库脚本分享_linux shell_
- shell中删除文件中重复行的方法_linux shell_
- shell替换文件中的文件路径脚本分享_linux shell_
- shell脚本操作oracle删除表空间、创建表空间、删除用户_linux shell_
- shell对比文件内容脚本分享_linux shell_
- shell使用mysqld_multi自动做多实例从库脚本_linux shell_
- 使用shell检查并修复mysql数据库表的脚本_linux shell_
