this post was submitted on 12 Feb 2025
13 points (100.0% liked)

Linux

2181 readers
1 users here now

founded 2 years ago
MODERATORS
 

I was trying to do that but I noticed ls | grep searchterm just searches the book TITLES for searchterm. Is this possible, to search the text of ebooks?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 6 points 2 days ago (1 children)

ls lists files, if you pipe it to grep it will print matching lines with file names. Universally you can't grep through ebook content, but you can do it with epub, probably other zipped text formats using zipgrep or just unzipthem and grep unarchived files.