From owner-freebsd-questions@freebsd.org Sun Sep 17 17:40:31 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 5DE53E2085D for ; Sun, 17 Sep 2017 17:40:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C285E665E0 for ; Sun, 17 Sep 2017 17:40:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Sun, 17 Sep 2017 19:40:21 +0200 Received: from r56.edvax.de (port-92-195-1-252.dynamic.qsc.de [92.195.1.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 119513CBF9; Sun, 17 Sep 2017 19:40:21 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v8HHeKgv002117; Sun, 17 Sep 2017 19:40:20 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 17 Sep 2017 19:40:20 +0200 From: Polytropon To: Manish Jain Cc: "Steve O'Hara-Smith" , "freebsd-questions@freebsd.org" Subject: Re: case command Message-Id: <20170917194020.8f6db248.freebsd@edvax.de> In-Reply-To: References: <59BE89E1.3050209@gmail.com> <20170917155649.e869897ddcc97c3c9d04929c@sohara.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with 5B35F763B27 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.1304 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 17:40:31 -0000 On Sun, 17 Sep 2017 15:01:32 +0000, 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 : - ) The typical "useless use of cat" often is just an illustration of how to use a certain command within a pipe chain. In cases where no piping is needed, redirection can be used easily. % cat food.txt | grep "catfood" > mister_kitty.txt Or: % grep "catfood" < food.txt > mister_kitty.txt I hope the cat will understand now. =^_^= -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...