Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. if [ "$#" -ne 1 ]; then
  2. echo "Programul nu a primit argumente sau exista prea multe argumente declarate"
  3. exit 0
  4. fi
  5.  
  6. if ! [ -f "$1" ]; then
  7. echo "Argumentul inserat nu este fisier"
  8. exit 0
  9. fi
  10.  
  11. if ! [ -r "$1" ]; then
  12. echo "Argumentul inserat nu poate fi citit"
  13. exit 0
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement