Guest User

Untitled

a guest
Nov 21st, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #!/bin/bash
  2. function press_enter
  3. {
  4. echo""
  5. echo -n "Press Enter to continue"
  6. read
  7. clear
  8. }
  9. selection=
  10. until [ "$selection" = "3" ]; do
  11. echo -e "Where would you like to search
  12. 1- Root
  13. 2- Home
  14. 3- Exit
  15.  
  16. Enter your choice ---> c"
  17. read selection
  18. case $selection in
  19. 1) cd / ; press_enter ;;
  20. 2) cd /home ; press_enter ;;
  21. 3) echo "Have a nice day!" ; exit ;;
  22. find $where_selection -name $what_selection -exec cat {} ;
  23. read where_selection;
  24. read what_selection;
  25. echo "find $where_selection -name $what_selection"
  26. esac
  27. done
Add Comment
Please, Sign In to add comment