Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2017 17:03:29 +0200
From:      Ralf Mardorf <ralf.mardorf@rocketmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: case command
Message-ID:  <20170917170329.7d9aff02@archlinux.localdomain>
In-Reply-To: <VI1PR02MB1200B54F7772D37F6BE020F4F6620@VI1PR02MB1200.eurprd02.prod.outlook.com>
References:  <59BE89E1.3050209@gmail.com> <VI1PR02MB1200B54F7772D37F6BE020F4F6620@VI1PR02MB1200.eurprd02.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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

.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170917170329.7d9aff02>