bloggb
About
Bibliography
Search
Get a range of script arguments in zsh
Get, for example, 3 arguments from the fourth one:
for
x
in
${
@
:4:3
}
;
do
echo
$x
done
Get all the arguments:
for
x
in
$@
;
do
echo
$x
done
Get all the arguments from the second one:
for
x
in
${
@
:2
}
;
do
echo
$x
done
If you want to ask me a question or leave me a message add @bougui505 in your comment.