How to get the length of a string in Linux bash shell?

You can use ${#<string_var>} to get the length of a string in Linux bash shell –

Leave a Reply