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:
No expensive forks, no pipes, no bashisms:
$ set -- $STRING $ eval echo \${$N} three
But beware of globbing.