A while ago a wrote a small post to remind me of How to find files containing a string in Unix.
Now, I have learned how to do pretty much the same thing but with Powershell:
get-childitem {directory} –include {file pattern} -recurse | select-string -pattern "{string to Find}" -casesensitive
You can write a path in {directory} or nothing to use the current directory.
No comments:
Post a Comment