The variable $type is a multi line string variable containing:
car
plane
You can get the output above issuing echo "$type".
And I have a some_command that uses $type as one of its parameters.
In bash, how would you execute some_command so that it runs with each line of $type one after another? i.e. first some_command would run using car and then it would run again using plane and then the loop would stop once the line was empty i.e. no values left to execute some_command with.