Created
October 10, 2018 18:08
-
-
Save cn007b/b4971d2caab5b89e12f6db0cd7f7a933 to your computer and use it in GitHub Desktop.
Super simple #bash example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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