From 61c5f8a1f06832a2bcad9ab75edfa4f652df2347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 12 Jan 2018 14:31:49 +0100 Subject: 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. --- man/journalctl.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'man/journalctl.xml') 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 pcre2pattern3 - for a detailed description of the syntax. + for a detailed description of the syntax. + + If the pattern is all lowercase, matching is case insensitive. + Otherwise, matching is case sensitive. This can be overridden with the + option, see below. + + + + + + + Make pattern matching case sensitive or case insenstive. + -- cgit v1.2.1