If we use read -p to display our prompts for data, then we can automatically not display the prompt if the data is provided on standard input.