View Single Post
Old 12-20-2011, 02:29 PM   #13
shinew
Addict
shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.shinew ought to be getting tired of karma fortunes by now.
 
Posts: 309
Karma: 1008082
Join Date: Feb 2009
Location: NYC
Device: Kindle PW, K4 Touch, iPad2, Samsung Galaxy S II
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 View Post
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

Last edited by shinew; 12-20-2011 at 03:00 PM.
shinew is offline   Reply With Quote