Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell foreach line in file read line

foreach($line in Get-Content .file.txt) {
    if($line -match $regex){
        # Work here
    }
}
Comment

PREVIOUS NEXT
Code Example
Shell :: which user apache runs as ubntu 
Shell :: restart bashrc 
Shell :: run a nuget package restore to generate this file 
Shell :: if argument supplied bash 
Shell :: kill process running on port in windows 
Shell :: install pip on raspberry pi 
Shell :: install sdkman ubuntu 
Shell :: path of recycle bin in windows 10 
Shell :: uninstall packages linux terminal 
Shell :: centos see user list 
Shell :: install libssl1.0 
Shell :: uninstall cheese ubuntu 
Shell :: yii2 advanced install 
Shell :: kill a process on a port ubuntu 
Shell :: delete all migrations django 
Shell :: ssh use other key file 
Shell :: how to kill linux screen 
Shell :: xdebug ubuntu 
Shell :: pip install requirements.txt ignore errors 
Shell :: Missing essential plugin: org.jetbrains.android 
Shell :: install ssh-copy-id 
Shell :: Start / Restart / Stop Nginx Commands 
Shell :: git commit amend without changing message 
Shell :: grep docker logs 
Shell :: brew install openssl 1.0 
Shell :: phoneinfoga github 
Shell :: git stash remove 
Shell :: install tkinter python 3 
Shell :: git sync local branch with remote 
Shell :: upgrade php 8 ubuntu 20.04 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =