Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function press_enter
- {
- echo""
- echo -n "Press Enter to continue"
- read
- clear
- }
- selection=
- until [ "$selection" = "3" ]; do
- echo -e "Where would you like to search
- 1- Root
- 2- Home
- 3- Exit
- Enter your choice ---> c"
- read selection
- case $selection in
- 1) cd / ; press_enter ;;
- 2) cd /home ; press_enter ;;
- 3) echo "Have a nice day!" ; exit ;;
- find $where_selection -name $what_selection -exec cat {} ;
- read where_selection;
- read what_selection;
- echo "find $where_selection -name $what_selection"
- esac
- done
Add Comment
Please, Sign In to add comment