Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- [ "$UID" -eq 0 ] || exec sudo "$0" "$@"
- echo -e "What File Extension Type: "
- read EXT
- echo -e "\nNew Destination Copy Direcotry: \n"
- read newDir
- find / -iname *.$EXT -exec cp {} $newDir \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement