diff --git a/xCAT-rmc/scripts/logeventtoxcat b/xCAT-rmc/scripts/logeventtoxcat index 9c5d88aab..2c7216e4a 100755 --- a/xCAT-rmc/scripts/logeventtoxcat +++ b/xCAT-rmc/scripts/logeventtoxcat @@ -65,7 +65,7 @@ if (!$batch) { #handle single event my $count; for ($count = 1; $count <= $num_events; $count++) { - my $content=`sed -n "/Event $count\$/,/ERRM_COND_BATCH/ p" $filename`; + my $content=`sed -n "/Event $count:/,/ERRM_COND_BATCH/ p" $filename`; my @content_array=split(/\n/, $content); pop(@content_array); #get rid of last line diff --git a/xCAT-rmc/scripts/updatexcatnodestatus b/xCAT-rmc/scripts/updatexcatnodestatus index 96ebd9b88..482de8fee 100755 --- a/xCAT-rmc/scripts/updatexcatnodestatus +++ b/xCAT-rmc/scripts/updatexcatnodestatus @@ -105,7 +105,7 @@ if (!$batch) { my @inactive=(); my %new_value=(); for ($count = 1; $count <= $num_events; $count++) { - my $content=`sed -n "/Event $count\$/,/ERRM_COND_BATCH/ p" $filename`; + my $content=`sed -n "/Event $count:/,/ERRM_COND_BATCH/ p" $filename`; my @content_array=split(/\n/, $content); pop(@content_array); #get rid of last line