View Single Post
Old 01-07-2019, 08:32 PM   #10
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 14,904
Karma: 12631370
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by EmilThelonius View Post
Thank You I will try that!

For the time being I found another solution: I used the folder containing the file. There the ID is in Brackets. So I can get the ID with the Code:
Code:
i=$(echo "$1" | awk -F'[()]' '{print $2}')
I started my post with: "You can extract the id from the book folder name...", but then I thought the calibredb list --fields solution might be better.

Now you have two ways to get what you want.

BR
BetterRed is offline   Reply With Quote