Friday, July 30, 2021

Split a row between pattern1 and pattern2

cat file |sed 's/^M//g' | sed -n "/pattern1/,/pattern2/p" > newfile

No comments: