Array - Display length of the specific element in linux shell
In this article we can learn how to display character count in a array element in linux bash shell and Display character count in a array element.
Character count in 1st element:
1 arrayNames=( btc eos eth usdt ltc)
2 echo ${#arrayNames[1]}
Character count in 4th element:
1 arrayNames=( btc eos eth usdt ltc)
2 echo ${#arrayNames[4]}