Recursive grep'ing with bash

By Finde Labs |  May 8, 2019  | openbsd, scripting, bash

How many times have grep’d a file, and then piped the output in order to grep again, and then piped that again to grep? Sometimes when I am search a file, I could end up piping maybe a dozen times while searching the file. Just for fun, I wanted to write a recursive grep program, rgrep in rust. However, as a first step, I figured I could write it in bash first.

Continue Reading...