Is there a way in Bash (without calling a 2nd script) to parse variables as if they were command line arguments? I'd like to be able to group them by quotes and such.
Example:
this="'hi there' name here"
for argument in $this; do
echo "$argument"
done
which should print (but obviously doesn't)
hi there
name
here