Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Echo Script
#!/bin/bash
#echo $@
# store arguments in a special array
args=("$@")
# get number of elements
ELEMENTS=${#args[@]}
for (( i=1;i<$ELEMENTS;i++)); do
echo ${args[${i}]}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment