Skip to content

Instantly share code, notes, and snippets.

@RagingTiger
Created November 13, 2018 10:13
Show Gist options
  • Save RagingTiger/abc5da3e9a991d49f22fd2307e5d50ac to your computer and use it in GitHub Desktop.
Save RagingTiger/abc5da3e9a991d49f22fd2307e5d50ac to your computer and use it in GitHub Desktop.
Example of While Loop and Space-delimited Text File Parsing
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