Open main menu
Article
Quizzes
Tools
EN
Article
Quizzes
Tools
All quizzes
/
AI Tools & Tool Calling
/
What does ...
What does the Grep tool do, and why use it instead of running grep through Bash?
It searches file contents for a pattern and returns matching lines — using it avoids the overhead of a shell invocation and makes the operation explicit in the tool log
It only searches file names, not file contents
It replaces text in files using regular expressions, similar to sed
It is identical to running grep through Bash with no practical difference
Submit answers