Last active
October 18, 2022 01:39
-
-
Save JoshCheek/6ab5ba5a3b2337cc3b487cb89fe22843 to your computer and use it in GitHub Desktop.
How to get the same output as "detect" from bash
This file contains 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
# https://twitter.com/inanna_malick/status/1582121657228922880 | |
# files executable by the current user, with "detect" in the filename | |
# or files with a ".rs" extension, containing the string "map_layer" | |
find . \ | |
\( -type f -perm -u=x -name '*detect*' -print \) \ | |
-or \ | |
\( -type f -name "*.rs" -exec grep --files-with-matches map_layer '{}' ';' \) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment