Skip to content

Instantly share code, notes, and snippets.

@freeman
Created May 4, 2010 21:34
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 freeman/390052 to your computer and use it in GitHub Desktop.
Save freeman/390052 to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in "$@"
do
echo $i
done
$ ./test "a b" c d "e f g"
a b
c
d
e f g
#!/bin/bash
for i in $*
do
echo "$i"
done
$ ./test "a b" c d "e f g"
a
b
c
d
e
f
g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment