Created
March 5, 2015 13:38
-
-
Save thiagosanches/bdd280099b913d169cc3 to your computer and use it in GitHub Desktop.
Regex pattern with powershell
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
$files = Get-Content "file_name_with_a_list_of_file_names" | |
foreach ($file in $files) { | |
select-string -Path $file -Pattern ">([0-9]+)" -AllMatches|%{$_.Matches[0].groups[1].value} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment