This is one of the areas where Mac and Linux is so much superior to windows. You just type one line of code and it's done, no 3rd party software needed.
Anyway, in case any Mac users need a similar list, one can just copy & paste the following. There're many ways to do this, this is just one of them:
Code:
find . -iname '*.mobi' -exec basename {} \; | sed 's/.mobi$//' > book_list.txt
If your file naming convention is sloppy(like me) and not consistent for all books, you can even go a step further if you have mobi2mobi installed, to pull the auothor & title info directly from the mobi files rather than rely on their file names:
Code:
find . -iname '*.mobi' -exec mobi2mobi {} \; | egrep 'Author|Title' | sed 'N;s/^EXTH.*[0-9][0-9]\ -\ \(.*\)\nEXTH.*[0-9][0-9]\ -\ \(.*\)$/\1 \:\ \2/g' > book_list.txt
Above code will generate the exact format requested from the OP.
Quote:
Originally Posted by terencek
Colm Toibin: Mothers and Sons
Colm Toibin: The Empty Family
Colum McCann: Let The Great World Spin
Cormac McCarthy: Outer Dark
...
|
It's the same for linux, but linux users probably already know this