Hi,
In my script, I want to exit if the input is
not Y or y. I am using case:
Code:
case $res in
~[Yy])
echo user chose to canel operation
exit 1
;;
esac
How do I negate the above ~[Yy]?
I tried ~[Yy]. The script is not exiting is input is not Y or y.
Thanks
Shar