Solution: read -p "Enter [y/n] : " opt
From help read:
-p prompt output the string PROMPT without a trailing newline before
attempting to read
Solution: read -p "Enter [y/n] : " opt
From help read:
-p prompt output the string PROMPT without a trailing newline before
attempting to read