Array - Display elements in a range in linux shell
In this article we can learn how to display elements in a specific range in linux terminal shell.
Index 2 to 4:
1 arrayNames=( btc eos eth usdt ltc)
2 echo ${arrayNames[@]:2:4}
Index 1 to 3:
1 arrayNames=( btc eos eth usdt ltc)
2 echo ${arrayNames[@]:1:3}