Hacker News new | ask | show | jobs
by jjgreen 331 days ago
All files in this git repository containing the string "foo"

    git grep foo | cut -d: -f1 | uniq
2 comments

Using ripgrep,

  rg -l foo | uniq
git grep -l foo | sort -u