Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if [ "$#" -ne 1 ]; then
- echo "Programul nu a primit argumente sau exista prea multe argumente declarate"
- exit 0
- fi
- if ! [ -f "$1" ]; then
- echo "Argumentul inserat nu este fisier"
- exit 0
- fi
- if ! [ -r "$1" ]; then
- echo "Argumentul inserat nu poate fi citit"
- exit 0
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement