Timeline for How to convert a string to lower case in Bash
Current License: CC BY-SA 2.5
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 17, 2022 at 13:36 | comment | added | biocyberman |
@karlahrnndz Actually you can do something like thins: ${a:0:1:l}${a:1} to lowercase only the first character.
|
|
Nov 17, 2022 at 13:25 | comment | added | biocyberman | Not something I know of. You can read about available flags here: zsh.sourceforge.io/Doc/Release/… | |
Nov 15, 2022 at 22:31 | comment | added | karlahrnndz | @biocyberman is there a way to lowercase the first char only? | |
Jul 24, 2015 at 23:26 | comment | added | biocyberman |
Add one more case: echo ${(C)a} #Upcase the first char only
|
|
Mar 5, 2014 at 23:33 | history | undeleted | Brad Larson♦ | ||
Jul 13, 2012 at 22:41 | history | deleted | Kev | ||
Jan 27, 2011 at 6:03 | history | edited | BenV | CC BY-SA 2.5 |
formatted code
|
Jan 27, 2011 at 5:39 | comment | added | Scott Smedley | or $a:l for lower case conversion | |
Jan 27, 2011 at 5:37 | history | answered | Scott Smedley | CC BY-SA 2.5 |