case command

Ralf Mardorf ralf.mardorf at rocketmail.com
Sun Sep 17 15:04:30 UTC 2017


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

.


More information about the freebsd-questions mailing list