如何在Shell脚本中以$ 1传递多个参数? [英] How Can I Pass Multiple Argument In $1 In Shell Script?

查看:233
本文介绍了如何在Shell脚本中以$ 1传递多个参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在shell脚本中传递$ 1中的所有参数。我的意思是我不想使用其他$ 2,$ 3 .. $ 9,如果没有我怎么能只用1美元传递所有的参数。如果有可能比有人告诉我如何实现这一点。

How can i pass all argument in $1 in shell script. I mean i don't want to use other $2,$3..$9 without that how can i pass all the argument in only $1. if it's possible than someone tell me how to achieve that.

推荐答案

1在shell脚本中。我的意思是我不想使用其他
1 in shell script. I mean i don't want to use other


2,


3 ..


这篇关于如何在Shell脚本中以$ 1传递多个参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆