Date: Sun, 17 Sep 2017 17:29:15 +0200 From: Ralf Mardorf <ralf.mardorf@rocketmail.com> To: freebsd-questions@freebsd.org Subject: Re: case command Message-ID: <20170917172915.69e19f08@archlinux.localdomain> In-Reply-To: <f87f5080-1388-51e2-8093-ee7628df753d@tundraware.com> References: <59BE89E1.3050209@gmail.com> <VI1PR02MB1200B54F7772D37F6BE020F4F6620@VI1PR02MB1200.eurprd02.prod.outlook.com> <20170917155649.e869897ddcc97c3c9d04929c@sohara.org> <VI1PR02MB12002177D7F2E684D387C90AF6620@VI1PR02MB1200.eurprd02.prod.outlook.com> <f87f5080-1388-51e2-8093-ee7628df753d@tundraware.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 17 Sep 2017 10:07:56 -0500, Tim Daneliuk wrote: >>>> On 09/17/17 20:12, Ernie Luzar wrote: > tr '[:upper:]' '[:lower:]' <infile | rest of chain At least "sudo cat" makes sense. Btw. a reply to myself didn't came through the list [1]. Sometimes using "cat" might make it easier to read in a script or when using command line you perhaps first want to take a look using "cat", before using tr, so less typing is needed when simply adding "| tr". [1] Begin forwarded message: Date: Sun, 17 Sep 2017 17:09:25 +0200 From: Ralf Mardorf To: freebsd-questions@freebsd.org Subject: Re: case command On Sun, 17 Sep 2017 17:03:29 +0200, Ralf Mardorf wrote: >On Sun, 17 Sep 2017 14:50:00 +0000, Manish Jain wrote: >>cat <file> | tr '[:upper:]' '[:lower:]' > >$ cd /tmp/ >$ echo "ABC" > test-file-1.txt >$ echo "ABC" > test-file-2.txt >$ cat test-file-1.txt | tr '[:upper:]' '[:lower:]' > >new-output-file-1.txt $ tr '[:upper:]' '[:lower:]' < test-file-2.txt > >new-output-file-2.txt $ cat *txt >abc >abc >ABC >ABC And in case "sudo" should be needed, then replace ">" by "| sudo tee". https://www.freebsd.org/cgi/man.cgi?query=tee&sektion=1&apropos=0&manpath=redhat .
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170917172915.69e19f08>