Skip to content

Instantly share code, notes, and snippets.

@Danilo-Araujo-Silva
Last active June 17, 2020 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Danilo-Araujo-Silva/e0be5b0ef7df37a2b5373db01613158d to your computer and use it in GitHub Desktop.
Save Danilo-Araujo-Silva/e0be5b0ef7df37a2b5373db01613158d to your computer and use it in GitHub Desktop.
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