Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

sed between two matches

Just use following structure to get result between two different patterns:
sed -n '/^pattern1/,/^pattern2/p;/^pattern2/q' file.txt
Comment

PREVIOUS NEXT
Code Example
Shell :: npm install bootstrap 3 angular 
Shell :: online c compiler with working fork 
Shell :: setup cron job 
Shell :: linux ubuntu how to install AppIndicator 
Shell :: stern install mac 
Shell :: create public and private key for jwt 
Shell :: pdf-tools debian 
Shell :: brownie list saved accounts 
Shell :: uninstall yarn 
Shell :: git new branch from current 
Shell :: rename multiple files mac terminal 
Shell :: your system lacks libtoolize 
Shell :: android ndk - configure does not recognize androideabi 
Shell :: linux print directory tree 
Shell :: Copy folder while ignoring node_modules folder 
Shell :: material-ui 
Shell :: install qtpy 
Shell :: create github repo with bash 
Shell :: bluetoothctl list paired devices 
Shell :: untar ubuntu 
Shell :: preserve permissions tar 
Shell :: npm install proxy 
Shell :: centos history rollback 
Shell :: cp exclude file 
Shell :: Git push --help fast-forwards 
Shell :: install python mac m1 
Shell :: zypper install build-essential 
Shell :: Minercraft set night command 
Shell :: pull down a branch locally 
Shell :: git exclude folder 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =