From owner-freebsd-questions@freebsd.org Sun Sep 17 15:08:07 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 992BBE17DB1 for ; Sun, 17 Sep 2017 15:08:07 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailman.tundraware.com", Issuer "mailman.tundraware.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5BC7327E0 for ; Sun, 17 Sep 2017 15:08:06 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.15.2/8.15.2) with ESMTPSA id v8HF82rD036489 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sun, 17 Sep 2017 10:08:02 -0500 (CDT) (envelope-from tundra@tundraware.com) Subject: Re: case command To: Manish Jain , "Steve O'Hara-Smith" , "freebsd-questions@freebsd.org" References: <59BE89E1.3050209@gmail.com> <20170917155649.e869897ddcc97c3c9d04929c@sohara.org> From: Tim Daneliuk Message-ID: Date: Sun, 17 Sep 2017 10:07:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (oceanview.tundraware.com [45.55.60.57]); Sun, 17 Sep 2017 10:08:02 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: v8HF82rD036489 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-0.919, required 1, autolearn=not spam, ALL_TRUSTED -1.00, AWL 0.08, RP_MATCHES_RCVD -0.00) X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2017 15:08:07 -0000 On 09/17/2017 10:01 AM, Manish Jain wrote: > > > On 09/17/17 20:26, Steve O'Hara-Smith wrote: >> On Sun, 17 Sep 2017 14:50:00 +0000 >> Manish Jain wrote: >> >>> >>> >>> On 09/17/17 20:12, Ernie Luzar wrote: >>>> Looking for a system command that a I can pip a file through to change >>>> all uppercase content to lower case. >>>> >>>> Is there such a command line command? >>> >>> cat | tr '[:upper:]' '[:lower:]' >> >> That poor overworked cat :) >> >> tr '[:upper:]' '[:lower:]' < >> > > Being the proud owner of a beautiful cat, I rather feel inclined to pay > tribute to the family every now and then : - ) > > Regards > Manish Jain My CEC (Chief Executive Cat) has done a code review and suggests you can possibly give the kitties a rest break if you quit hitting the pipe: tr '[:upper:]' '[:lower:]'