Sample Header Ad - 728x90

Bash: slice of positional parameters

47 votes
4 answers
32592 views
How can I get a slice of $@ in Bash without first having to copy all positional parameters to another array like this? argv=( "$@" ) echo "${argv[@]:2}";
Asked by n.r. (2263 rep)
Jul 7, 2013, 01:12 AM
Last activity: Oct 29, 2024, 06:25 PM