Last active
March 10, 2017 07:23
-
-
Save johnjullies/ef4132dc559afb834a05804b987e9562 to your computer and use it in GitHub Desktop.
Gets the contents of a file into an array variable and outputs the string one line at a time. Source: http://stackoverflow.com/a/11393884/1444895
This file contains hidden or 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
IFS=$'\r\n' GLOBIGNORE='*' | |
command eval 'arr=($(cat ep_names))' | |
for i in "${arr[@]}" | |
do | |
echo "$i" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment