Example of how to get input while constantly outputting in a shell script using bash.