Guest User

Untitled

a guest
Dec 30th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. read -p 'username : ' usr_value
  2. read -sp 'password : ' psw_value
  3. echo
  4. a=fghj
  5. if["usr_value" = "$a"] #I am having problem in this line
  6. then
  7. echo "you have correct username"
  8. else
  9. echo "you have incorrect username"
  10. if
  11.  
  12. if [ <condition> ] #mind the whitespaces
  13.  
  14. if [ "usr_value" = "$a" ]
Add Comment
Please, Sign In to add comment