Код: Выделить всё
ts-utc!=!2024-12-26T05:38:54.649609!;!alertCount!=!0!;!alertIdName!=!TEST!;!nodeType!=!NA!;!pid!=!4091773!;!portNo!=!NA!;!location!=!A29223!;!errorMsg!=!NOT!;!
Код: Выделить всё
#!/usr/bin/perl
#
$file='test.xml';
$aMatchString='(?=.*location!=!A2923!)(?=.*!errorMsg!=!TESTING)';
while () {
# check if the string from the file matches
if ($_ =~ m/$aMatchString/) {
print "NIRAJ NO";
print $_;
}
else {
print "skipped";
}
}
Нирадж Рати
Подробнее здесь: https://stackoverflow.com/questions/793 ... linux9-wit
Мобильная версия