From owner-freebsd-questions Sat Aug 3 12:20: 0 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F263437B400 for ; Sat, 3 Aug 2002 12:19:58 -0700 (PDT) Received: from njam.myip.org (bkg8100by4lk.bc.hsia.telus.net [142.173.32.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E96C43E4A for ; Sat, 3 Aug 2002 12:19:58 -0700 (PDT) (envelope-from viktorlazlo@njam.myip.org) Received: from localhost (viktorlazlo@localhost) by njam.myip.org (8.11.6/8.11.6) with ESMTP id g6V2IaE31660; Tue, 30 Jul 2002 19:18:36 -0700 (PDT) (envelope-from viktorlazlo@njam.myip.org) Date: Tue, 30 Jul 2002 19:18:35 -0700 (PDT) From: Viktor Lazlo To: Warren Block Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Stupid question about "less" In-Reply-To: Message-ID: <20020730191556.E989-100000@njam.myip.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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