Skip to content

phenixrizen/hunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hunt

A go program to quickly hunt for content in source files

hunt - a simple way to hunt for content in source files

usage: hunt -query "foo bar" -root .

flags:
  -c, --c-files                search for c/c++ files
  -g, --go-files               search for Go files
  -i, --ignore-regexp string   regexp to ignore matching the filename (default "\\.git")
  -j, --js-files               search for JavaScript files
  -n, --name-regexp string     regexp to match the filename
  -p, --python-files            search for pyhton files
  -q, --query string           regexp to match source content
  -r, --root string            root to start your hunt (default ".")
  -b, --ruby-files             search for ruby files
  -s, --rust-files             search for rust files

Install

$ go install github.com/phenixrizen/hunt@latest

Examples

Hunt for Go and C source files that have "Accept-Encoding" or "User-Agent" in the code:

$ hunt --query "Accept-Encoding|User-Agent" --root . --go-files --c-files

Or short flags:

$ hunt -q "Accept-Encoding|User-Agent" -g -c

About

Replacement for grepping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages