If you need to look for a literal string in a directory and all its subdirectories, use grep -rF "your.literal.string" . -r or –recursive: Recursively read all files under each directory. -F or –fixed-strings: Treat the pattern as a literal string (not a regular expression). This is important if your string contains characters like .… Continue reading Recursive grep in a directory on macOS
Tag: grep
Searching for code snippets in a given directory
One thing that saved me lots of time and potential bugs is using grep for a given string in a given directory. Imagine you decided to rename a function and you now need to update every piece of code that calls it. No chance you will remember all places where you used it, and manually… Continue reading Searching for code snippets in a given directory
Using SSH console to speed up coding
A few potentially overlooked quick tips