mirror of
https://github.com/garabik/grc.git
synced 2024-11-15 14:48:26 +01:00
grc.conf : correct the regular expression with ping, traceroute, ip, journalctl, systemctl, sysctl : the '?' is for '\s', not for the last letter of the command
This commit is contained in:
parent
b11c36fcba
commit
270e11cb83
1 changed files with 6 additions and 6 deletions
12
grc.conf
12
grc.conf
|
@ -11,11 +11,11 @@ conf.log
|
||||||
conf.configure
|
conf.configure
|
||||||
|
|
||||||
# ping command
|
# ping command
|
||||||
(^|[/\w\.]+/)(io|o|n|h|arp|l2)?ping[236]?\s
|
(^|[/\w\.]+/)(io|o|n|h|arp|l2)?ping[236]?\s?
|
||||||
conf.ping
|
conf.ping
|
||||||
|
|
||||||
# traceroute command
|
# traceroute command
|
||||||
(^|[/\w\.]+/)traceroute6?\s
|
(^|[/\w\.]+/)traceroute6?\s?
|
||||||
conf.traceroute
|
conf.traceroute
|
||||||
|
|
||||||
# gcc command
|
# gcc command
|
||||||
|
@ -114,7 +114,7 @@ conf.iproute
|
||||||
conf.ipneighbor
|
conf.ipneighbor
|
||||||
|
|
||||||
# ip command - rest of commands
|
# ip command - rest of commands
|
||||||
(^|[/\w\.]+/)ip?\s
|
(^|[/\w\.]+/)ip\s?
|
||||||
conf.ip
|
conf.ip
|
||||||
|
|
||||||
# env
|
# env
|
||||||
|
@ -191,15 +191,15 @@ conf.dockerversion
|
||||||
------------
|
------------
|
||||||
|
|
||||||
# journalctl command
|
# journalctl command
|
||||||
(^|[/\w\.]+/)journalctl?\s
|
(^|[/\w\.]+/)journalctl\s?
|
||||||
conf.log
|
conf.log
|
||||||
|
|
||||||
# systemctl command
|
# systemctl command
|
||||||
(^|[/\w\.]+/)systemctl?\s
|
(^|[/\w\.]+/)systemctl\s?
|
||||||
conf.systemctl
|
conf.systemctl
|
||||||
|
|
||||||
# sysctl command
|
# sysctl command
|
||||||
(^|[/\w\.]+/)sysctl?\s
|
(^|[/\w\.]+/)sysctl\s?
|
||||||
conf.sysctl
|
conf.sysctl
|
||||||
|
|
||||||
# tcpdump command
|
# tcpdump command
|
||||||
|
|
Loading…
Reference in a new issue