Created
October 18, 2019 17:10
-
-
Save spewil/0d6dc09f0c216a742ac517e74f9631ad to your computer and use it in GitHub Desktop.
search files and their contents with fts <dir> <file term> <content term>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fts(){ | |
find $1 -type f -print | grep $2 | xargs rg $3 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ayyy this is good dude