How can I iterate over my function parameters starting with the second parameter?
#!/bin/bash -
function test23() {
echo 'hello world'
for text in $2..$@
do
echo $text
done
}
test23 start with the second argument
My current output is
hello world
with..start
with
the
second
argument
and I want to get 'with the second argument'.