Sponsored Content
Top Forums Shell Programming and Scripting How to get the number series in between? Post 302534359 by pinpe on Monday 27th of June 2011 04:33:34 PM
Old 06-27-2011
How to get the number series in between?

Hi Guys,

Can someone give me a simple script that can extract the numbers in between numbers from start to end. As shown below, it start from 100 to 110 and revealed the numbers in between.

INPUT:
Code:
100 - 110


DESIRED OUTPUT:
Code:
100
101
102
103
104
105
106
107
108
109
110


Thanks in advance.

Br,
Pinpe
 

9 More Discussions You Might Find Interesting

1. Programming

Ibm Mq Series

hi everybody, My name is Raj i work in GE Global Software Solutions As Siebel Analyst. Can any one help in writing the code in Ansi C on HP-Unix platform to get data from IBM MQ-Series Server. IBM MQ-series client will be installed on the client machine which is on WIN NT platform. And MQ-series... (2 Replies)
Discussion started by: garimella
2 Replies

2. Shell Programming and Scripting

Fibonacci series

Need code to run the Fibonacci series from 0 to 10 (16 Replies)
Discussion started by: nycol
16 Replies

3. Programming

C with MQ Series

Hi, Any one please let me know, how to write in to MQ Series through C. I tried, but it was vein, am expecting material(URL) or code. Thanks, Naga:cool: (5 Replies)
Discussion started by: Nagapandi
5 Replies

4. Programming

series of combinations

HI I have a series(sorted), which i require to create combinations. I am not getting the good code for doing this. My series should generate the following combinations... Please help me in getting this in C++. Thanks for your help. A: A A B: A B A B A B C: A ... (1 Reply)
Discussion started by: rameshmelam
1 Replies

5. UNIX for Dummies Questions & Answers

To find missing numbers from a number series

Hi, My requirement is I have an input file with a continuous series from 10000 to 99999. I have some numbers missing from those series. I want a output file which produces those missing numbers. Eg: 10002, 99999 are missing from the series then the output file should contain those... (4 Replies)
Discussion started by: rakeshbharadwaj
4 Replies

6. Solaris

M Series

Hi All, Do anyone know if I upgrade cpu module and memory module for one of the domain inside Sun M5000. After the upgrade, will the hostid for the domain change or it will remain as long we don't change the system board? Currently will try to upgrade one of the Sun M5000 with 4 domains... (2 Replies)
Discussion started by: mailbox80
2 Replies

7. Shell Programming and Scripting

how can I detect number series range

Hi I have one source file and content of source file as follows; 3 00 3 01 3 02 3 07 3 09 3 10 3 15 3 16 3 17 3 18 3 40 3 45 3 500 3 501 3 502 3 70 3 80 (8 Replies)
Discussion started by: kocaturk
8 Replies

8. Shell Programming and Scripting

Finding Minimum in a Series

I have two LARGE files of data more than 20,000 line each, file-1 and file-2, and I wish to do the following if possible: file-1 1 2 5 7 9 2 4 6 3 8 9 4 6 8 9 3 2 1 3 1 2 . . . file-2 1 2 3 2 5 7 5 7 3 7 9 4 . (5 Replies)
Discussion started by: ali2011
5 Replies

9. Red Hat

Find the series

Hai what command is used to find red hat linux 5 series? (2 Replies)
Discussion started by: vinayd
2 Replies
PERROR(3F)																PERROR(3F)

NAME
perror, gerror, ierrno - get system error messages SYNOPSIS
subroutine perror (string) character*(*) string subroutine gerror (string) character*(*) string character*(*) function gerror() function ierrno() DESCRIPTION
Perror will write a message to fortran logical unit 0 appropriate to the last detected system error. String will be written preceding the standard error message. Gerror returns the system error message in character variable string. Gerror may be called either as a subroutine or as a function. Ierrno will return the error number of the last detected system error. This number is updated only when an error actually occurs. Most routines and I/O statements that might generate such errors return an error code after the call; that value is a more reliable indicator of what caused the error condition. FILES
/usr/lib/libU77.a SEE ALSO
intro(2), perror(3) D. L. Wasley, Introduction to the f77 I/O Library BUGS
String in the call to perror can be no longer than 127 characters. The length of the string returned by gerror is determined by the calling program. NOTES
UNIX system error codes are described in intro(2). The f77 I/O error codes and their meanings are: 100 ``error in format'' 101 ``illegal unit number'' 102 ``formatted i/o not allowed'' 103 ``unformatted i/o not allowed'' 104 ``direct i/o not allowed'' 105 ``sequential i/o not allowed'' 106 ``can't backspace file'' 107 ``off beginning of record'' 108 ``can't stat file'' 109 ``no * after repeat count'' 110 ``off end of record'' 111 ``truncation failed'' 112 ``incomprehensible list input'' 113 ``out of free space'' 114 ``unit not connected'' 115 ``invalid data for integer format term'' 116 ``invalid data for logical format term'' 117 ``'new' file exists'' 118 ``can't find 'old' file'' 119 ``opening too many files or unknown system error'' 120 ``requires seek ability'' 121 ``illegal argument'' 122 ``negative repeat count'' 123 ``illegal operation for unit'' 124 ``invalid data for d, e, f, or g format term'' 4.2 Berkeley Distribution June 7, 1985 PERROR(3F)
All times are GMT -4. The time now is 06:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy