Try ripgrep-all.
Linux
This looks pretty cool, thanks!
Glad to help!
This tool is very powerful! Just what I needed, thanks again. Turns out you need pandoc 3+ and linux mint repo has 2.9, so after upgrading that rga started working, but it still throws this error from time to time:
parseSpine
Error: copying adapter output to stdout
Caused by:
0: subprocess: Command { std: "pandoc" "--from=epub" "--to=plain" "--wrap=none" "--markdown-headings=atx", kill_on_drop: false }
1: ExitStatus(unix_wait_status(16384))
I will have to keep looking into it, I'm not sure if this error stops the search in it's tracks.
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.
Thanks!
Sounds like a good time to mention that "Little Brother" by Cory Doctorow is available in GNU Info format (usually used for manpages).
grep searchTerm file
You can't grep zip archives directly.
Ripgrep-all has that capability.
Good to know.