Show HN: Rga: ripgrep, but also search in PDFs, Office documents, zip, tar.gz
You can do mostly the same thing with , but you will miss content in other file types and it will be much slower:
On the first run rga is mostly faster because of multithreading, but on subsequent runs (with the same files but any regex query) rga will cache the text extraction, so it becomes almost as fast as searching in plain text files. rga will recursively descend into archives and match text in every file type it knows. Some rga adapters run external binaries to do the actual work (such as pandoc or ffmpeg), usually by writing to stdin and reading from stdout.
Source: phiresky.github.io