Skip to content

Instantly share code, notes, and snippets.

@sewerk
Last active June 30, 2021 15:22
Show Gist options
  • Save sewerk/9c006e94b5fa9fe67fadc77c3b8bd43b to your computer and use it in GitHub Desktop.
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
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