#!/bin/bash
if
[
"
$answer
"
!
=
"
${answer#[Yy]}
"
]
;
then
echo
Yes
else
echo
No
fi