{"version":"1.0","type":"rich","title":"find string in directory","description":"This example demonstrates two command-line methods for searching a directory tree for files containing a specific text pattern. It shows the `find` utility combined with `grep` to locate and print matching lines from `.txt` files, and an alternative `grep` invocation with recursive, line-number, and word-match flags to search the same path. The code uses the POSIX shell commands `find` and `grep`, illustrating their distinct syntaxes for filtering files and matching content. The visualization conveys the practical difference between a file-centric approach and a content-centric approach in text search workflows.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-379987e14e79651bd4f79aecdd3afdf6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}