【发布时间】:2021-02-18 20:57:27
【问题描述】:
如何从第二个参数开始迭代我的函数参数?
#!/bin/bash -
function test23() {
echo 'hello world'
for text in $2..$@
do
echo $text
done
}
test23 start with the second argument
我目前的输出是
hello world
with..start
with
the
second
argument
我想得到“第二个参数”。
【问题讨论】:
标签: bash