I am struggling to understand how we handle bash read
inputs, when the user needs to input data with a space.
Can someone please provide a simple explanation?
read -p 'Artist: ' ARTIST
read -p 'Album: ' ALBUM
read -p 'Genre: ' GENRE
A single word artist (Bjork) will work fine, but as soon as you try to enter a first and last name for example, the entire system crumbles.
I'm guessing the only way I will be able to do this is handle each input individually with a loop and then concentrate the string down into a single variable with the spaces intact.