Created
September 4, 2017 12:03
-
-
Save Inkimar/446cb54f0c61a1fc1d50ed03cf03f3ab to your computer and use it in GitHub Desktop.
bash script fetching data from a csv-file
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
file : users.csv ( put that file in .gitignore) | |
users.csv | |
user,password | |
gpg -c users.csv generates users.csv.gpg -> push to github | |
run script | |
#!/bin/bash | |
while IFS=, read user password | |
do | |
echo "I got:$user and $password" | |
done < users.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment