sed multiple lines use in if statement
I have a utility that produces a report which includes the below section:
Code:
recommended_actions Code:
ALERT=`sed -e '/recommended_actions/,/(0 rows)/!d' ${LOGFILE}` Code:
recommended_actions Code:
if [[ ${ALERT} != "recommended_actions --------------------- (0 rows)" ]] ; then Thanks. |
Try placing set -xv at the top of your script after the initial interpreter line and see what ALERT is being set to and why the test is failing.
|
All times are GMT -5. The time now is 07:16 PM. |