grep on Windows
Earlier during the week, I had a requirement to check the IIS logs across two servers going back to December 2017. My problem, I was on Windows and not Linux. Now a simple Google search for grep on Windows will provide you with a number of different options ranging from PowerShell to the Windows Command prompt, Cygwin and grep programs which run on Windows. I also had Notepad++ installed on my dev machine which could have very well done the trick. So what is the point of this useless article you may ask ? Well I had an itch to scratch. I wanted to use grep -rin just as I would do in Linux from my Windows 2016 server.
There is a much simpler way to grep, just as one would have done on Linux, by using git Bash.. tada!
This may seem a bit innocuous to some, however strangely enough I found this faster than the other programs. Coming up in a different story git-grep.