No Grep
Never use grep, egrep, or fgrep to search text or files. Use rg (ripgrep) instead.
Philosophy
rg is much faster than grep, egrep, and fgrep. When tools serve the same purpose, choose the faster one.
Fix
Replace grep commands with equivalent rg commands and options.