Guest User

Untitled

a guest
Jul 30th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ## Code:
  2.  
  3. ...
  4.  
  5. for i in $CUSTOMER_DIR; do
  6. ...
  7.  
  8. DB_USER="`cat tippkoenig_$i/config/database.yml | grep username | cut -d ':' -f 2 | cut -d ' ' -f 2`"
  9. DB_PASS="`cat tippkoenig_$i/config/database.yml | grep password | cut -d ':' -f 2 | cut -d ' ' -f 2`"
  10. echo $DB_USER
  11. echo $DB_PASS
  12. echo "$DB_USER $DB_PASS"
  13.  
  14. ...
  15. done
  16.  
  17. ...
  18.  
  19. ## Output:
  20.  
  21. johndoe
  22. pwd123123
  23. pwd123123
  24.  
  25. ## Reaction:
  26.  
  27. WTF?!
Add Comment
Please, Sign In to add comment