Batch convert ebooks qustion
Linux for blind general discussion
blinux-list at redhat.com
Wed May 12 12:39:54 UTC 2021
Hi,
First put all the epubs in a directory.
Then cd into that directory.
Then run detox. This is to remove spaces and other nasties from the
filenames.
Install the detox package if required, then do
detox *
in the epub directory.
then do:
for i in $(ls *epub);do
textname=`basename $i .epub`
ebook-convert $i "$textname".txt
done
HTH, Willem
On Wed, 12 May 2021, Linux for blind general discussion wrote:
> So, I've a fun question. I bought a box set of ebooks that got delivered in
> .epub format. I'd like to convert them to .txt, the ebooks are DRM free, but
> I don't want to go through one at a time. So...
>
> Can I use ebook-convert, I can't do ebook-convert *.epub *.txt
>
>
> So how can I tell ebook-convert to take all the files of a certain type and
> convert to my desired output type?
>
> _______________________________________________
> Blinux-list mailing list
> Blinux-list at redhat.com
> https://listman.redhat.com/mailman/listinfo/blinux-list
>
>
More information about the Blinux-list
mailing list