Use curly braces to set them off:
echo "${10}"
You can also iterate over the positional parameters like this:
for arg
or
for arg in "$@"
or
while (( $# > 0 )) # or [ $# -gt 0 ]
do
echo "$1"
shift
done
1. Explainshell – paste any bash command, and it breaks it down word by word. No more guessing awk or sed. 2. KubeSim – browser-based Kube...
No comments:
Post a Comment