Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash count character in variable

$ mystring="one two three four five"
$ echo "string length: ${#mystring}"
string length: 23
 
PREVIOUS NEXT
Tagged: #bash #count #character #variable
ADD COMMENT
Topic
Name
8+7 =