[Nagiosplug-help] check_apt: I don't understand the regex
Frank Van Damme
frank.vandamme at gmail.com
Wed Apr 6 13:31:54 CEST 2011
Hello list,
according to the man page of check_apt, a package is considered a
critical upgrade if it matches this regex:
^[^\(]*\([^ ]* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)
I know a few things about regexes but I can't parse it. And so can't grep:
# apt-get -o 'Debug::NoLocking=true' -s -qq upgrade | grep
'^[^\(]*\([^ ]* (Debian-Security:|Ubuntu:[^/]*/[^-]*-security)'
grep: Unmatched ( or \(
What am I misinterpreting?
--
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.
More information about the Help
mailing list