- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- hai can anyone help me ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2009 12:27 AM
09-20-2009 12:27 AM
hai can anyone help me ?
1.) write an if statement that sets the variable num to 1 when choice equals 10.
2.) if statement that sets the variable num to the same value as the control variable choice when choice equals 5, but sets num to 0 in every other case.
thanx.. rili rili apriciate ur kindnes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2009 01:24 AM - edited 08-28-2011 12:55 PM
09-20-2009 01:24 AM - edited 08-28-2011 12:55 PM
Re: can anyone help me?
You seem to be asking simple shell programming questions.
if [ $choice -eq 10 ]; then
num=1
fi
if [ $choice -eq 5 ]; then
num=$choice # which is 5
else
num=0
fi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2009 01:26 AM
09-20-2009 01:26 AM
Re: hai can anyone help me ?
Where does variable ``choice'' come from? Command line, terminal, file input, ...?
Regards,
Kobylka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2009 08:19 AM
09-20-2009 08:19 AM
Re: hai can anyone help me ?
One might argue that doing a child's homework
for him is not really a kindness.