diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-12 14:31:49 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-28 14:50:01 +0100 |
commit | 61c5f8a1f06832a2bcad9ab75edfa4f652df2347 (patch) | |
tree | 6cad5667942cd5d47c3ab359c7d3468873b6e803 /man/journalctl.xml | |
parent | 6becf48ca3e03cd16d58942b7c8a99f7e49275c5 (diff) | |
download | systemd-61c5f8a1f06832a2bcad9ab75edfa4f652df2347.tar.gz |
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 'man/journalctl.xml')
-rw-r--r-- | man/journalctl.xml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/man/journalctl.xml b/man/journalctl.xml index 91cd4714d5..37fb0d67fd 100644 --- a/man/journalctl.xml +++ b/man/journalctl.xml @@ -586,7 +586,19 @@ field matches the specified regular expression. PERL-compatible regular expressions are used, see <citerefentry><refentrytitle>pcre2pattern</refentrytitle><manvolnum>3</manvolnum></citerefentry> - for a detailed description of the syntax.</para></listitem> + for a detailed description of the syntax.</para> + + <para>If the pattern is all lowercase, matching is case insensitive. + Otherwise, matching is case sensitive. This can be overridden with the + <option>--case-sensitive</option> option, see below.</para> + </listitem> + </varlistentry> + + <varlistentry> + <term><option>--case-sensitive<optional>=BOOLEAN</optional></option></term> + + <listitem><para>Make pattern matching case sensitive or case insenstive.</para> + </listitem> </varlistentry> <varlistentry> |