I receive the following error message:
<@begpat=strhelp.ksh>
<@endpat=strhelp.ksh>
awk: syntax error near line 1
awk: bailing out near line 1
Code follows:
any ideas?
#!/usr/bin/ksh
conORACLE_SID=`/usr/ucb/whoami | tr '[:lower:]' '[:upper:]'`
. /opt/clarify/$conORACLE_SID/.profile
strBOOK_MARK=$1
strBEG_MARK="<@begpat=$1>"
strEND_MARK="<@endpat=$1>"
echo $strBEG_MARK
echo $strEND_MARK
awk -v aaa="$strBEG_MARK" -v bbb="$strEND_MARK" '$0 == aaa, $0 == bbb { if ($0 != aaa && $0 != bbb) print $0 }' strhelp.txt
<@begpat=strhelp.ksh>
<@endpat=strhelp.ksh>
awk: syntax error near line 1
awk: bailing out near line 1
Code follows:
any ideas?
#!/usr/bin/ksh
conORACLE_SID=`/usr/ucb/whoami | tr '[:lower:]' '[:upper:]'`
. /opt/clarify/$conORACLE_SID/.profile
strBOOK_MARK=$1
strBEG_MARK="<@begpat=$1>"
strEND_MARK="<@endpat=$1>"
echo $strBEG_MARK
echo $strEND_MARK
awk -v aaa="$strBEG_MARK" -v bbb="$strEND_MARK" '$0 == aaa, $0 == bbb { if ($0 != aaa && $0 != bbb) print $0 }' strhelp.txt