Created
November 13, 2018 10:13
-
-
Save RagingTiger/abc5da3e9a991d49f22fd2307e5d50ac to your computer and use it in GitHub Desktop.
Example of While Loop and Space-delimited Text File Parsing
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
while read var1 var2; do | |
echo "$var1" | |
echo "$var2" | |
done < $1 # input your text file here: e.g. passwords.txt, file.txt, urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment