Skip to content

Instantly share code, notes, and snippets.

@gkhays
Last active September 14, 2016 16:08
Show Gist options
  • Save gkhays/a85c85ee63b52363d003 to your computer and use it in GitHub Desktop.
Save gkhays/a85c85ee63b52363d003 to your computer and use it in GitHub Desktop.
Show bash command line arguments
#!/bin/bash
# http://commons.apache.org/proper/commons-exec/commandline.html
# http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_09_07.html
while [ $# -gt 0 ]
do
echo "$1"
shift
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment