I know that in various programming languages there is an option to hold two or more variables (or just one variable) by some variable; a typical example in general is to store coordinates.
Is this practice of holding two or more variables by one variable exist in shell (say, Bash) and what would be a typical example?
structorobjectin C++ don't exist in the shell, if that is what you are referring to.Position="$x,$y" and split them asIFS=, read -r x y <<<"${Position}"`. But I would usually take this as a hint that awk or perl might be a better solution.