how to read input in shell/ancient bash