Quick Answer: How Do You Change Case in Unix?
Contents

You can change the case of the string very easily by using tr command. To define uppercase, you can use [:upper:] or [A-Z] and to define lowercase you can define [:lower:] or [a-z]. tr command can be used in the following way to convert any string from uppercase to lowercase.

How do you change uppercase to lowercase in UNIX?

The ^ operator converts to uppercase, while , converts to lowercase. If you double-up the operators, ie, ^^ or ,, , it applies to the whole string; otherwise, it applies only to the first letter (that isn’t absolutely correct – see “Advanced Usage” below – but for most uses, it’s an adequate description).

How do you lowercase in UNIX?

11.12s for ghostdog74’s approach to lowercase; 31.41s for uppercase. 26.25s for technosaurus’ approach to lowercase; 26.21s for uppercase. 25.06s for JaredTS486’s approach to lowercase; 27.04s for uppercase.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest