DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+3 =
Submit