Guest User

Untitled

a guest
Apr 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. while read argument; do
  2. if [ $argument -d ]; then
  3. echo "Directory exists"
  4. elif [ $argument -e ]
  5. echo "File exists"
  6. else
  7. mkdir $argument
  8. if [ $argument -d]; then
  9. echo "Directory was created"
  10. else
  11. echo "Error while creating the directory"
  12. fi
  13. fi
  14. done
Add Comment
Please, Sign In to add comment