Bash Script Split String By Character In R