Skip to content

Instantly share code, notes, and snippets.

@spewil
Created October 18, 2019 17:10
Show Gist options
  • Save spewil/0d6dc09f0c216a742ac517e74f9631ad to your computer and use it in GitHub Desktop.
Save spewil/0d6dc09f0c216a742ac517e74f9631ad to your computer and use it in GitHub Desktop.
search files and their contents with fts <dir> <file term> <content term>
fts(){
find $1 -type f -print | grep $2 | xargs rg $3
}
@peterldowns
Copy link

ayyy this is good dude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment