Skip to content

Instantly share code, notes, and snippets.

@hatchetation
Created May 13, 2013 18:20
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 hatchetation/5570288 to your computer and use it in GitHub Desktop.
Save hatchetation/5570288 to your computer and use it in GitHub Desktop.
example of trickier iteration in bash
#!/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