View Single Post
Old 02-24-2011, 08:03 AM   #1
sam_uk
Member
sam_uk began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Feb 2011
Device: Android
Uber Calibre script - ubuntu

Hi all

I am new to ebooks. I have got a 'mess' of ebook files on my hardrive, different formats, some compressed, some in a folder directory structure, some by author, some by title.

I was hoping someone might have a script that

1) Recursively extracts all tarred files [ find ./ -name '*.rar' -exec unrar e -o+ {} \; ]

2) Organises those files into a single flat directory [ find . -type f -exec mv '{}' . \; ]

3) Removes duplicates [ yes 1 | fdupes -rd . ]

4) Deletes .rar files (space saving) [ find -name "*.rar" -delete ]

5) Copies all epub files to a new folder called 'calibre' or similar

6) Coverts all the remaining .pdf .txt etc files to .epub and moves them to 'calibre' folder

7) Sorts resulting folder alphabetically

8) Goes and grabs the cover art from the internet

9) Makes me a cup of tea whilst it completes!

Not much to ask!

Any pointers or part-solutions welcomed..

Thanks

Sam

Last edited by sam_uk; 02-24-2011 at 03:46 PM.
sam_uk is offline   Reply With Quote