博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
shell parameter
阅读量:7073 次
发布时间:2019-06-28

本文共 562 字,大约阅读时间需要 1 分钟。

#!/bin/bashfunWithParam(){    echo "scname:$0"    echo "The value of the first parameter is $1 !"    echo "The value of the second parameter is $2 !"    echo "The value of the 100th parameter is $100 !"    echo "The value of the 10th parameter is ${10} !"    echo "The value of the 11th parameter is ${11} !"    echo "The amount of the parameters is $# !"    echo "The string of the parameters is $* !"    echo "show process id:$$"}echo "input numbers:1 2 3 4 5 6 7 8 9 34 73"funWithParam 1 2 3 4 5 6 7 8 9 34 73

 

转载于:https://www.cnblogs.com/xxdfly/p/6592934.html

你可能感兴趣的文章
我的友情链接
查看>>
html遮罩层js代码(实用)
查看>>
javascript判断浏览器支持CSS3属性
查看>>
Xbox One 电源
查看>>
网页锚点链接
查看>>
Linux运维 第五阶段 puppet基础
查看>>
【自学Linux】Linux文件系统管理(二)
查看>>
我的友情链接
查看>>
二手交易市场将慢慢落幕还是繁华?
查看>>
DNS
查看>>
android之路重新开启
查看>>
linux设置时间服务器
查看>>
NetScaler配置证书自签发
查看>>
Virtio:针对 Linux 的 I/O 虚拟化框架
查看>>
mysql 安装
查看>>
python函数:zip()
查看>>
我的友情链接
查看>>
联机对战DEMO
查看>>
使用struct实现面向对象编程的封装
查看>>
2017.12.20 2周3次课
查看>>