Quote:
Originally Posted by Starson17
I'm thinking of something like this metascript:
cycle through all possible id's, doing a show_metadata
pipe to sed to fix firstname and lastname
pipe to set_metadata.
|
Just an update and a thanks. I ended up doing this in Windows and used batch files with FOR /L loops to go through all the IDs. The first step wrote all the opf files, the second step used sed to process them and fix the author names, and the last loop did the set_metadata to put them back into the database.
I don't know if it's a bug, but for some reason, calibredb always seemed to stop execution of the batch file when it completed. This caused it to ignore any other lines in the same batch file. I had to do this job in two batch files, one to make the opf files, and one to sed process then set the metadata.
The process time was about 10 seconds per book, so this is taking a while, (still running 8 hours later). Anyway, thanks for the help.