Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.17 KB | None | 0 0
  1. #!/bin/bash
  2. password="root";
  3. x=0;
  4. while [ $x -le 2 ] ; do
  5. read passwd
  6. if [ $password = $passwd ]
  7. then
  8.     ls ../
  9.     x=$[5]
  10. else
  11.     echo "Bledne haslo"
  12.     x=$[x + 1]
  13. fi
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement