Answers for "bash split a word into characters"

0

bash split a word into characters

ss="abcdefghi"
my_array=( `echo $ss | grep -o . ` )

echo ${my_array[2]} 

give c
Posted by: Guest on August-20-2021

Code answers related to "bash split a word into characters"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language