Created
May 13, 2013 18:20
-
-
Save hatchetation/5570288 to your computer and use it in GitHub Desktop.
example of trickier iteration in bash
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 | |
# playing with iteration | |
# keys.txt contains two ssh keys, one per line | |
KEYS=$(cat keys.txt) | |
IFS=$'\n' | |
for key in ${KEYS} | |
do | |
echo ${key} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment