I am trying to extract some info from a text block with markers like #@ and #@@. Using the command below with the example file works, but when trying chain it with -e it does not work as expected.
Current command (not ideal)
sed -n "/^#@/,/#@@/p" file | sed 's/[#@]*//'
Reworked command ( does not work)
sed -en "/^#@/,/#@@/p" -e 's/[#@]*//' file
Desired output
text title
text line
text line
File format
#
#
#@ text title
# text line
# text line
#@@
#
What i am doing wrong ?