3 lines
113 B
Bash
3 lines
113 B
Bash
string='Hello, world!'
|
|
length=`expr "x$string" : '.*' - 1`
|
|
echo $length # if you want it printed to the terminal
|