Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

deletes lines including regex match

Use d option at the end of sed replace definition for deleting line of matches.
sed -i "" "s/matching_pattern/d" file.txt
Comment

deletes lines including regex match

Use d option at the end of sed replace definition for deleting line of matches.
sed -i "" "s/matching_pattern/d" file.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: git config log 
Shell :: merge master into local branch 
Shell :: makefile parameter 
Shell :: where to find files in WSL unbuntu home directory on windows 
Shell :: delete all lines in vi 
Shell :: manually shut down docker mac 
Shell :: nuget reinstall packages 
Shell :: installing sonarqube on ubuntu 
Shell :: brew show package info 
Shell :: materila ui 
Shell :: cut first 10 characters linux 
Shell :: git rebase head 
Shell :: npm supertest 
Shell :: change commit branch after push 
Shell :: bash script assign array to variable 
Shell :: linux zip folder without parent folder 
Shell :: git flow release 
Shell :: conda install minio 
Shell :: add project to github 
Shell :: time command windows 
Shell :: git modify repository remote url 
Shell :: fix drive readonly in linux 
Shell :: apache2 enable xml extension 
Shell :: mv command in linux to rename 
Shell :: cat dhcp.leases 
Shell :: The fingerprint for the RSA key sent by the remote host is 
Shell :: ubuntu open file system from terminal 
Shell :: git checkout specific file types only 
Shell :: Log sync requires rsync to be installed. 
Shell :: install adb on mac 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =