Created
January 5, 2011 11:06
-
-
Save RhysC/766183 to your computer and use it in GitHub Desktop.
PS Script that shows all txt lines in files that contain the given pattern (not recursive))
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Need to define $pattern | |
get-childitem . | get-childitem | select-string -pattern $pattern | foreach {$_.line} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment