Hi All,
I have a requirement where in I have an input as follows:-
input=1-4,6,8-10,12-15
I need to explode this range into an output file as follows:-
1
2
3
4
6
8
9
10
12
13
14
15
My input may vary like 1,5-9,11-13,15-17....... (3 Replies)
Hi,
I have a directory which contains a number of sub directories. They are named as 1.0.0, 1.0.1, 1.0.2...1.1.0..1.1.1...1.2.0..and so on..
Basically these are the tags created at the time of release. Tags are named as major.minor.buildnumber format for modules.
Now I have to search the... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Shell script to find sum of first n numbers of Fibonacci series
2. Relevant commands, code, scripts,... (0 Replies)
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)
I have a list of numbers in the format:
5
4
15
65
32
I want to write code to manipulate the list and give me 100 - x such that the list looks like:
95
96
85
35
68
How do I go about doing that? Thanks! (9 Replies)
Hi,
I have a dataset say
1 2 3 4
5 5 6 7
6 7 8 9
I was wondering if there is a way to add another column with the following style...
1 2 3 4 xyz_1
5 5 6 7 xyz_2
6 7 8 9 xyz_3
It would be greatly appreciated if I can have an option of specifying what to write instead of xyz,... (8 Replies)
Hi,
i need to move the decimal point from a file listing some numbers like this :
49899.50
49914.55
49894.48
49939.65
49879.44
49919.57
49934.62
49944.67
49954.72 (1 Reply)
Discussion started by: Board27
1 Replies
LEARN ABOUT LINUX
seq
SEQ(1) User Commands SEQ(1)NAME
seq - print a sequence of numbers
SYNOPSIS
seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST
DESCRIPTION
Print numbers from FIRST to LAST, in steps of INCREMENT.
-f, --format=FORMAT
use printf style floating-point FORMAT
-s, --separator=STRING
use STRING to separate numbers (default:
)
-w, --equal-width
equalize width by padding with leading zeroes
--help display this help and exit
--version
output version information and exit
If FIRST or INCREMENT is omitted, it defaults to 1. That is, an omitted INCREMENT defaults to 1 even when LAST is smaller than FIRST.
FIRST, INCREMENT, and LAST are interpreted as floating point values. INCREMENT is usually positive if FIRST is smaller than LAST, and
INCREMENT is usually negative if FIRST is greater than LAST. FORMAT must be suitable for printing one argument of type `double'; it
defaults to %.PRECf if FIRST, INCREMENT, and LAST are all fixed point decimal numbers with maximum precision PREC, and to %g otherwise.
AUTHOR
Written by Ulrich Drepper.
REPORTING BUGS
Report seq bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report seq translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for seq is maintained as a Texinfo manual. If the info and seq programs are properly installed at your site, the
command
info coreutils 'seq invocation'
should give you access to the complete manual.
GNU coreutils 8.5 February 2011 SEQ(1)