Skip to content

Instantly share code, notes, and snippets.

@fvigotti
Last active July 22, 2016 13:16
Show Gist options
  • Save fvigotti/384fce7ec5068ee7052f495bc3af8648 to your computer and use it in GitHub Desktop.
Save fvigotti/384fce7ec5068ee7052f495bc3af8648 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
args=("$@")
ELEMENTS=${#args[@]}
for (( i=0;i<$ELEMENTS;i++)); do
echo '['$i']'${args[${i}]}'[/'$i']'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment