Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I am trying to locate a file that (should) contains the string "1896.345", somewhere under /home/dir/.
Any ideas of how I can do it? Thanks
grep -r -l -i "1896\.345" .
Use find and xargs:
find /home/dir -type f -print0 | xargs -0 grep -l 1896.345
grep -r pattern .
Required, but never shown