Created
January 8, 2014 00:32
-
-
Save artolaluis/8309532 to your computer and use it in GitHub Desktop.
Quick shell command to find a space-separated list of files that contain a string in a given directory
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 -H -r string_to_find directory_to_search | cut -d: -f1 | sort | uniq | tr "\n" " " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment