diff --git a/osx/grep.md b/osx/grep.md index 738066ba1..cef3d8e5b 100644 --- a/osx/grep.md +++ b/osx/grep.md @@ -7,6 +7,10 @@ `grep {{something}} {{file_path}}` +- search recursively in current directory for an exact string + +`grep -r {{something}} .` + - use a regex `grep -e {{^regex$}} {{file_path}}`