remove line with match command
Use d option at the end of sed command string for deleting line of matches.
sed -i "" "s/matching_pattern/d" file.txtUse d option at the end of sed command string for deleting line of matches.
sed -i "" "s/matching_pattern/,+1 d" file.txt #+1 defines number of lines
# to delete after matching line
Also in C++:
- how to unstage a commit
- install gron
- how to install open media vault on raspberry pi
- bash multiplication of arguments
- How to Delete Local/Remote Git Branches
- how to connect mongocell in ubuntu
- remove all cache ubuntu
- shell script get arguments
- view log apache 2
- windows cat grep equivalent
- ssh run single command
- ubuntu remove all unnecessary packages
- git create branch
- ubuntu subsystem windows 10 from cmd prompt
- vmware can't edit vm settings
- how to add ca to linux
- change desktop icon size in linux
- git link local branch to remote branch
- remove a non empty directory
- scp copy recursive
- git merge by ssh key
- @material-ui/icons
- find folder linux
- bash params