DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+7 =
Submit