summaryrefslogtreecommitdiff
path: root/src/shared/logs-show.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-12 14:31:49 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-28 14:50:01 +0100
commit61c5f8a1f06832a2bcad9ab75edfa4f652df2347 (patch)
tree6cad5667942cd5d47c3ab359c7d3468873b6e803 /src/shared/logs-show.c
parent6becf48ca3e03cd16d58942b7c8a99f7e49275c5 (diff)
downloadsystemd-61c5f8a1f06832a2bcad9ab75edfa4f652df2347.tar.gz
systemd-61c5f8a1f06832a2bcad9ab75edfa4f652df2347.tar.bz2
systemd-61c5f8a1f06832a2bcad9ab75edfa4f652df2347.zip
journalctl: make matching optionally case sensitive
Case sensitive or case insensitive matching can be requested using --case-sensitive[=yes|no]. Unless specified, matching is case sensitive if the pattern contains any uppercase letters, and case insensitive otherwise. This matches what forward-search does in emacs, and recently also --ignore-case in less. This works surprisingly well, because usually when one is wants to do case-sensitive matching, the pattern is usually camel-cased. In the less frequent case when case-sensitive matching is required with an all-lowercase pattern, --case-sensitive can be used to override the automatic logic.
Diffstat (limited to 'src/shared/logs-show.c')
0 files changed, 0 insertions, 0 deletions