vnix$ cat >script echo args: "$@" for f in "$@"; do echo "arg: $f"; done ^D vnix$ sh ./script foo bar baz args: foo bar baz arg: foo arg: bar arg: baz