echo -e "o\n1" | ./your_script.sh
The -e flag enables interpretation of backslash escapes (like \n for newline)
you can simulate the above behavior with a simple script and confirm if it works in your environment