Using awk or sed how can I select lines which are occurring between two different marker patterns? There may be multiple sections marked with these
awk
sed
This might work for you (GNU sed):
sed '/^abc$/,/^mno$/{//!b};d' file
Delete all lines except for those between lines starting abc and mno
abc
mno