Last active
August 29, 2015 14:02
-
-
Save katmutua/5a8c5f540df237e15ae9 to your computer and use it in GitHub Desktop.
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
| while read p; do | |
| username=$(cut -f 1 -d "," <<<$p) | |
| pline=$(grep $username accounts/accounts.rb -A1) | |
| password=$(cut -f 4 -d " " <<<$pline) | |
| password=${password:1:${#password}-3} | |
| real_password=$(rake password[$username] | tail -1) | |
| awk -F, "BEGIN { OFS=\",\" } { \$2=\"$real_password\"; print;}" <<<"$p" | |
| done < template_file.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment