Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell foreach line in file read line

foreach($line in Get-Content .file.txt) {
    if($line -match $regex){
        # Work here
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #powershell #foreach #line #file #read #line
ADD COMMENT
Topic
Name
6+3 =