Answers for "bash get lines between"

0

bash get lines between

Just use following structure to get result between two different patterns:
sed -n '/^pattern1/,/^pattern2/p;/^pattern2/q' file.txt
Posted by: Guest on December-03-2020

Code answers related to "bash get lines between"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language