HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: list numbers
Operating System - HP-UX
1832831
Members
3118
Online
110047
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-19-2005 06:47 PM
06-19-2005 06:47 PM
Dear All,
I have saw a thread in this forum that I could do like this,
for i in `xxx 1 9`
do
echo $i
done
1 2 3 4 5 6 7 8 9
I forgot what command is xxx, anyone knows it ? Thank you.
I have saw a thread in this forum that I could do like this,
for i in `xxx 1 9`
do
echo $i
done
1 2 3 4 5 6 7 8 9
I forgot what command is xxx, anyone knows it ? Thank you.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 06:56 PM
06-19-2005 06:56 PM
Solution
You probably have seen the seq command.
You usually find it on Linux systems.
I'm afraid to my knowing HP-UX doesn't provide this.
You either google for a download
(it must be OpenSource) or you implement your own seq() shell function which shouldn't be too difficult.
As a workround I usually use a while loop like such
typeset -i i=0;while (( i <= 10 ));do echo $i;((i+=1));done
You usually find it on Linux systems.
I'm afraid to my knowing HP-UX doesn't provide this.
You either google for a download
(it must be OpenSource) or you implement your own seq() shell function which shouldn't be too difficult.
As a workround I usually use a while loop like such
typeset -i i=0;while (( i <= 10 ));do echo $i;((i+=1));done
Madness, thy name is system administration
- Tags:
- seq
- while loop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 07:00 PM
06-19-2005 07:00 PM
Re: list numbers
I just checked on a Linux box in my vicinity.
Actually seq is part of the coreutils package
which sounds very rudimentary.
$ uname -srv
Linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003
$ rpm -qf $(which seq)
coreutils-4.5.3-19
Actually seq is part of the coreutils package
which sounds very rudimentary.
$ uname -srv
Linux 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003
$ rpm -qf $(which seq)
coreutils-4.5.3-19
Madness, thy name is system administration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2005 07:03 PM
06-19-2005 07:03 PM
Re: list numbers
thanks, thru...system admins always lazy to keystroke the repeat things:-)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP