OK I am going to mark this solved. Here is what I did.
I created two directories, "temp" and "temp2". Then I created a script file cpepubfiles.sh and put it in /home/irv/temp/
Code:
#!/bin/bash
main_search_dir="/home/irv/temp/";
save_dir="/home/irv/temp2/";
extention="epub";
find "$main_search_dir" -name "*.$extention" -exec cp -t "$save_dir" {} +
Then I copied all the directories with the .epub files in them to the temp directory.
Then I open a terminal and changed to the temp directory and ran
It copied all the epub files from all the directories to /home/irv/temp2.
Worked great.
Thanks for all the help.
Bookmarks