I'm doing a shellscript and got the command that returns:
$ sqlite3 banco.db 'select code from channels'
00 01 02 03
When I assign the return to a variable, everything changes to a single string.
$ export LISTA=$(sqlite3 banco.db 'select code from channels')
$ echo $LISTA
00 01 02 03
I would like each number to be the element of an array, how can I transform it so that it can be called something like:
$ echo $LISTA[0]
00
$ echo $LISTA[1]
01