Skip to content

Instantly share code, notes, and snippets.

@benwei
Last active March 14, 2019 16:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save benwei/a31de51069aa31dc54f355bc5d599892 to your computer and use it in GitHub Desktop.
#!/bin/bash
i=1
while [ ! "x$1" = "x" ]; do
echo "argv[$i]=[$1]"
shift
i=$((i + 1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment