Last active
June 30, 2021 15:22
-
-
Save sewerk/9c006e94b5fa9fe67fadc77c3b8bd43b to your computer and use it in GitHub Desktop.
Finds phrase in file.txt found on current dir - displays filename+line_number+line_content
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
find . -name "file.txt" -exec grep -n phrase "{$1}" /dev/null \; | |
// other | |
grep -or ‘something\|someelse’ —include \*.kt . | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment