View Single Post
Old 11-26-2014, 02:53 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
We can use "find" as well, which should recurse automatically.

Code:
find . -type f \( -name "*.FMT1" -or -name "*.FMT2" \) -exec calibredb add {} \;
And awesomely enough, gfind (renamed) can do this on Windows too, with https://github.com/bmatzelle/gow

(On Windows, the characters ;() do not get escaped.)

Last edited by eschwartz; 11-26-2014 at 03:25 PM.
eschwartz is offline   Reply With Quote