Skip to content

Instantly share code, notes, and snippets.

@StokicDusan
Last active August 28, 2022 18:04
Show Gist options
  • Save StokicDusan/22d4edd315f97039dbdec07473aebfdd to your computer and use it in GitHub Desktop.
Save StokicDusan/22d4edd315f97039dbdec07473aebfdd to your computer and use it in GitHub Desktop.
A way to find all files which contain string

A way to find all files which contain specific text

find -type f -exec grep -IH 'word' {} \;

If the patters are in a file, use:

xargs -a patterns.txt -I% find Folder/ -name %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment