Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sed delete between two patterns

sed '/start/,/end/d' myfile # include start & end pattern
sed -n '1,/start/p;/end/,$p' myfile # only delete between patterns
Comment

PREVIOUS NEXT
Code Example
Shell :: wmv to mp4 ffmpeg 
Shell :: clone using token github 
Shell :: installing git in ec2 
Shell :: setting sublimeREPL in linux 
Shell :: create xampp shortcut ubuntu 
Shell :: grepcc coin 
Shell :: install apache on mac 
Shell :: install safari in ubunut 
Shell :: echo with color from bash 
Shell :: run dotnet core app 
Shell :: flutter web setup 
Shell :: how to undo a git stash 
Shell :: linux home dir shortcut 
Shell :: rsync only new files 
Shell :: kubectl cleanup pods 
Shell :: find a file in linux terminal 
Shell :: Port 5000 is not open on localhost, could not start functions emulator 
Shell :: snap install package 
Shell :: install docker fedora 
Shell :: powershell get all applications installed 
Shell :: generate patch file git 
Shell :: restart wsl 
Shell :: show branch detail branch info in git 
Shell :: connect to a pod 
Shell :: linux bash command to clean up log files 
Shell :: bitbucket how to undo commit 
Shell :: stop tracking a file git 
Shell :: find out a branch a parent branch git 
Shell :: instal curl via yum 
Shell :: flutter add dependency command line 
ADD CONTENT
Topic
Content
Source link
Name
1+7 =