The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Y or N in a Shell
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Y or N in a Shell
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
07-02-2009
vidyadhar85
Moderator(The Tutor)
Join Date: Jun 2008
Location: INDIA
Posts: 1,419
you may want to take care of capital "Y" also
so type
if [ $answer = "y" -o $answer = "Y" ] then
or use switch case as
case $answer in
"Y"||"y")commands here;;
*);;
esac
vidyadhar85
View Public Profile
Find all posts by vidyadhar85
Find vidyadhar85's past nominations received
Find vidyadhar85's present nominations given