Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true
- do
- echo "enter directory (q or Q to exit):"
- read dir
- case $dir in
- q|Q exit;;
- while true
- do
- echo "Enter subdir to create (s or S to stop)"
- read subdir
- case $subdir in
- s|S) break;;
- *)
- mkdir $dir/$subdir
- ;;
- esac
- done
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement