≡ Menu

expr command

Bash/KSH/SH Shell: Find The Length Of a String On a UNIX, Linux, BSD, and OS X

While writing a shell script you may want to find out the length of a string. While reading GNU expr command man page I found an interesting option as follows:
[click to continue…]