Created
November 19, 2018 15:02
-
-
Save 1-800-jono/655777c938c50ab6447912e0020115a0 to your computer and use it in GitHub Desktop.
Create a list of files that contain a specific string.
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
grep -rl "string" "/path/to/files" | xargs basename > list-of-files.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment