Answers for "bash count character in variable"

0

bash count character in variable

$ mystring="one two three four five"
$ echo "string length: ${#mystring}"
string length: 23
Posted by: Guest on December-03-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language