Created
May 10, 2023 17:46
-
-
Save andrewwoods/0ae9b7e417eb049d95d588dc5be4ca60 to your computer and use it in GitHub Desktop.
RipGrep all PHP requires/includes on command line
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
# rg --type-list will show all the file types with their associated file extensions. | |
# Use the --type-add option once for each additional type you want | |
# to be seen as a PHP file. | |
rg -e '^require(_once)?\b' -e '^include(_once)?\b' --type-add 'php:*.inc' --type php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment