Advertisement
999ms

5.49

Apr 4th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. while true
  2. do
  3. echo "enter directory (q or Q to exit):"
  4. read dir
  5. case $dir in
  6. q|Q exit;;
  7. while true
  8. do
  9. echo "Enter subdir to create (s or S to stop)"
  10. read subdir
  11. case $subdir in
  12. s|S) break;;
  13. *)
  14. mkdir $dir/$subdir
  15. ;;
  16. esac
  17. done
  18. esac
  19. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement