Split line into words in bash
s='foo bar baz'
a=( $s )
echo ${a[0]}
echo ${a[1]}
...
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
s='foo bar baz'
a=( $s )
echo ${a[0]}
echo ${a[1]}
...