In Bash, I want to get the Nth word of a string hold by a variable.
For instance:
STRING=\"one two three four\" N=3
Result:
An alternative
N=3 STRING="one two three four" arr=($STRING) echo ${arr[N-1]}