View Single Post
Old 02-23-2014, 07:13 PM   #2
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)
You use
Code:
calibredb list -s "search-term" -f ""
and pipe | the output through a filter to remove the first line, ("id") then pipe the resulting list of ids to
Code:
calibredb export [options]
In bash that would be
Code:
calibredb list -s "search-term" -f "" | tail -n +2 | calibredb export [options]
tail is a linux command to output only the last x lines (or start from line number +2) but I'm not sure how to do the equivalent on Windows, if you are using Windows.
eschwartz is offline   Reply With Quote