lesspipe for ripgrep for common new filetypes using few dependencies

rgpipe is a single bash script and an alias to use with ripgrep to search through a myriad of file types that are otherwise not grep friendy. Here mostly newish ms office things without using too many other programs. rgpipe because the idea is similar to lesspipe. Use it with ripgrep’s -pre command which is a preprocessor that allows ripgrep to selectively do something to a file before searching it. It works with other tools as well, namely less.


Was this post helpful?