Skip to content

Instantly share code, notes, and snippets.

@cn0047
Created October 10, 2018 18:08
Show Gist options
  • Select an option

  • Save cn0047/b4971d2caab5b89e12f6db0cd7f7a933 to your computer and use it in GitHub Desktop.

Select an option

Save cn0047/b4971d2caab5b89e12f6db0cd7f7a933 to your computer and use it in GitHub Desktop.
Super simple #bash example
#!/bin/bash
# set -x
f() {
echo "got: ${1}"
}
for i in $(seq 1 3); do
r=$(f ${i})
echo $r
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment