Last active
June 17, 2020 15:33
-
-
Save Danilo-Araujo-Silva/e0be5b0ef7df37a2b5373db01613158d to your computer and use it in GitHub Desktop.
Echo Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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