Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # Variables
  2. URL="http://$UN:$PW@localhost:8080/rest/v1"
  3.  
  4. # Login
  5. echo "Please enter your username and password."
  6. read -p "Username: " UN
  7. read -s -p "Password: " PW
  8.  
  9. echo $UN
  10.  
  11. echo $PW
  12.  
  13. echo $URL
  14.  
  15. "http://${UN}:${PW}@localhost:8080/rest/v1"
  16.  
  17. "http://"$UN":"$PW"@localhost:8080/rest/v1"
  18.  
  19. "http://"${UN}":"${PW}"@localhost:8080/rest/v1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement