I want to print complete text between specific words. Here is my requirement.
\"123.log\" contain below text.
EBSPRODSTART web logic server Oracle databa
There are three problems with your code:
'...'
"..."
$DBNAMESTART
DBNAMESTART
${DBNAME}START
DBANEMEND
DBNAMEEND
Thus:
sed -n "/^${DBNAME}START\$/,/^${DBNAME}END\$/p"