Hi i have the following:
bash_script parm1 a b c d ..n
I want to iterate and print all the values in the command line starting from a, not
This method will keep the first param, in case you want to use it later
#!/bin/bash for ((i=2;i<=$#;i++)) do echo ${!i} done
or
for i in ${*:2} #or use $@ do echo $i done