You want the -w
option to specify that it’s the end of a word.
find . | xargs grep -sw 's:text'
More Related Contents:
- How can I grep for a string that begins with a dash/hyphen?
- Grep for literal strings
- Use grep –exclude/–include syntax to not grep through certain files
- How does grep run so fast?
- Print lines in one file matching patterns in another file
- Using grep for multiple search patterns
- Display filename before matching line
- grep a tab in UNIX
- grep for special characters in Unix
- Grepping for exact words with UNIX
- What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)?
- What are file descriptors, explained in simple terms?
- Identifying and removing null characters in UNIX
- How do I remove the passphrase for the SSH key without having to create a new key?
- Why are ports below 1024 privileged? [closed]
- Equivalent of *Nix ‘which’ command in PowerShell?
- Is there a way to ignore header lines in a UNIX sort?
- How do I set $PATH such that `ssh user@host command` works?
- What should we do to prepare for 2038?
- Need to link cmake project to dl library
- Why do programs in Unix-like environments have numbers after their name? [duplicate]
- How to get a unix script to run every 15 seconds?
- What is the general syntax of a Unix shell command?
- Unix grep regex containing ‘x’ but not containing ‘y’
- How can I send an email through the UNIX mailx command?
- Convert decimal to hexadecimal in UNIX shell script
- Command-line Unix ASCII-based charting / plotting tool
- Setting environment variable in shell script does not make it visible to the shell
- What generates the “text file busy” message in Unix?
- What are the dark corners of Vim your mom never told you about? [closed]