- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- small script
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
02-23-2007 03:23 AM
02-23-2007 03:23 AM
I want to have a script test.sh
that for every 2 different numbers to have the following kind of result
#./test.sh 3 8
3
4
5
6
7
8
Thanks,
Andy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 03:28 AM
02-23-2007 03:28 AM
Re: small script
#!/usr/bin/sh
typeset -i LO=${1}
typeset -i HI=${2}
while [[ ${LO} -le ${HI} ]]
do
echo "${LO}"
((LO += 1))
done
exit 0
You really should try to do a little on your own before you ask for such a simple script. If you are preparing for a test, don't bother. I have already assigned your grade.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 03:47 AM
02-23-2007 03:47 AM
Solutionplease see your own thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1098581
Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 04:07 AM
02-23-2007 04:07 AM
Re: small script
>> I want to have a script test.sh
that for every 2 different numbers to have the following kind of result
#./test.sh 3 8
If that's what you really want, then see prior solutions.
However, I don't think that is not really what you want.
What is the real problem you are trying to solve?
Why do you want to use a million dollar solution to provide such a trivial list?
What will the list be used for?
The 'right' answer to your simplistic question depends on the 'real' problem you are trying to solve.
Agreed?
Hein van den Heuvel
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2007 04:27 AM
02-23-2007 04:27 AM