Simpler list to data

# Define a list.
x='a d c f g'
# Just expand the list inside parenthesis
a=($x)

# Here is the resulting array.
echo ${a[@]}
a d c f g
echo ${a[1]}
d

Comments

Popular posts from this blog

oche, lik echo but a bit easier to use.

Bithon: Run Python Interactively Inside Bash

Parsing Columns From Files WITHOUT awk