Skip to content

Instantly share code, notes, and snippets.

@rogervila
Created May 8, 2019 14:08
Show Gist options
  • Save rogervila/7e57f95b9a30e10fbd037bb41985e1c1 to your computer and use it in GitHub Desktop.
Save rogervila/7e57f95b9a30e10fbd037bb41985e1c1 to your computer and use it in GitHub Desktop.
Find files by its content
#!/usr/bin/env bash
find /full/path/ -type f -exec grep -Hn "search term" {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment