#!/usr/bin/perl use strict; my $line = "mdrecoveryd"; my $process = "/bin/bash -c -x /bin/ttrun-parts && /bin/ttrun-parts +/etc/cron.hourly || run-parts /etc/cron.hourly"; if ($line =~ m/$process/i) { print "YES\n"; } else { print "NO\n"; }
In reply to Regex false match by mhearse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |