Date: Tue, 30 Jul 2002 19:18:35 -0700 (PDT) From: Viktor Lazlo <viktorlazlo@njam.myip.org> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Stupid question about "less" Message-ID: <20020730191556.E989-100000@njam.myip.org> In-Reply-To: <Pine.BSF.4.21.0207301945140.11397-100000@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Jul 2002, Warren Block wrote:
> Is there an easier way to do case-insensitive searches with less? That
> is, other than with tedious things like this:
>
> /[Ss][Oo][Mm][Ee][Tt][Hh][Ii][Nn][Gg]
>
> Nothing jumps out from the man page...
Launching less with the -i or -I switches cause it to ignore case in
searches:
-i or --ignore-case
Causes searches to ignore case; that is, uppercase
and lowercase are considered identical. This
option is ignored if any uppercase letters appear
in the search pattern; in other words, if a pattern
contains uppercase letters, then that search does
not ignore case.
-I or --IGNORE-CASE
Like -i, but searches ignore case even if the pat-
tern contains uppercase letters.
Cheers,
Viktor
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020730191556.E989-100000>
