How to convert to lowercase and uppercase in bash, awk, sed, and, tr and the benchmark results for each
This article introduces how to convert to lowercase and uppercase in bash, awk, sed, and tr, and the benchmark results for each.
Versions The versions are as follows:
OS Ubuntu 20.04.1 LTS bash GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) gawk GNU Awk 5.0.1, API: 2.0 (GNU MPFR 4.0.2, GNU MP 6.2.0) mawk 1.3.4 20200120 sed sed (GNU sed) 4.7 tr tr (GNU coreutils) 8.30 Convert to lowercase/uppercase bash The documentation says the following: