This morning I figured it out. Must have been too tired last night for my head to figure it out. Forget my previous post. The solution is to use the "read" command.