View Single Post
Old 10-23-2009, 08:25 PM   #16
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by hairybiker View Post
If I was better at Linux command scripting then that is what I would do, but since I am still learning it ...
Well the hard part about grep is just working out what regex you need to use. If you've sorted out the exact form of the regex that fixes your html, then you just need to use
grep regex input_html_file > edited_file
ebook-convert edited_file output_file.mobi

You can download a version of grep that will work on Windows systems, so you can do the whole thing in a command window on the same VM.
charleski is offline   Reply With Quote