Just for understanding, do the bits in brackets in the desired output ([0:3], for example) represent the minimum and maximum values found in the input (e.g. read[0] ... read[1] ... ... read[3]), or what?
yes yes they are representing minimum and maximum..
so that let say if we have
it will output something like this:
I am new to Unix and have tried to write a ksh script to do the following without success:
I have several reports in a directory (report1, report2, report3, etc). I would like to combine all of these reports into one file (REPORTS). I would like to append *** End of Report *** to each report so... (2 Replies)
I am trying to get some data from a file and print it on the same line.
I have a script that gets the date/time and calculates a DB query call time and sends to a file. I need to take this file and send it in a xcel like format with multiple data columns.
example output file (fndbq.out)
... (3 Replies)
The following input needs to be manipulated as follows:
INPUT from file or results of command:
============start:
Medium identifier : a45c0213:47eb5485:0aec:0321
Medium label : SQL Disk_11516
Location :
Protected : None ... (2 Replies)
Hi all,
I once knew of a simple unix command to do this, but I can't remember it and I can't find it by searching.
I have two files.
### FILE A ####
A1
A2
A3
A4
A5
### FILE B ####
B1
B2
B3
B4
B5 (2 Replies)
Hi all,
What is the sed command use to combine line?
Example:
Below is an output after extracted from few commands
aaa
bbb
ccc
ddd
eee
fff
ggg
and i would like to combine all the line as shown below,
aaa,bbb,ccc,ddd,eee,fff (5 Replies)
Hi,
I am not very familiar with sed and awk and i have a huge file to process which is impossible to do manually. I want to print out beginning from "Network" until end of line only (excluding the Version). AND. the decription to be all in one line.
File:
Version: 2.0 Network: xxx... (9 Replies)
Hello all,
i am new to linux , and please need your help and suggestion on....
when vi 1.txt :set list, it looks like
$ is displaying the end of line
Filter: vlan1-BUM-1M $
BUM-1M 0 ... (4 Replies)
I am trying to combine lines with these conditions:
1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text.
2. If condition1 is met then continue to combine lines through a line that ends with a semicolon.
3. Ignore case when matching patterns and remove any... (5 Replies)
Discussion started by: Wes Kem
5 Replies
LEARN ABOUT MOJAVE
glutinitwindowposition
glutInitWindowPosition(3GLUT) GLUT glutInitWindowPosition(3GLUT)NAME
glutInitWindowPositionWindowPosition, glutInitWindowSize - set the initial window position and size respectively.
SYNTAX
#include <GLUT/glut.h>
void glutInitWindowSize(int width, int height);
void glutInitWindowPosition(int x, int y);
ARGUMENTS
width Width in pixels.
height Height in pixels.
x Window X location in pixels.
y Window Y location in pixels.
DESCRIPTION
Windows created by glutCreateWindow will be requested to be created with the current initial window position and size.
The initial value of the initial window position GLUT state is -1 and -1. If either the X or Y component to the initial window position is
negative, the actual window position is left to the window system to determine. The initial value of the initial window size GLUT state is
300 by 300. The initial window size components must be greater than zero.
The intent of the initial window position and size values is to provide a suggestion to the window system for a window's initial size and
position. The window system is not obligated to use this information. Therefore, GLUT programs should not assume the window was created at
the specified size or position. A GLUT program should use the window's reshape callback to determine the true size of the window.
EXAMPLE
If you would like your GLUT program to default to starting at a given screen location and at a given size, but you would also like to let
the user override these defaults via a command line argument (such as -geometry for X11), call glutInitWindowSize and glutInitWindowPosi-
tion before your call to glutInit. For example:
int main(int argc, char **argv)
{
glutInitWindowSize(500, 300);
glutInitWindowPosition(100, 100);
glutInit(&argc, argv);
...
}
However, if you'd like to force your program to start up at a given size, call glutInitWindowSize and glutInitWindowPosition after your
call to glutInit. For example:
int main(int argc, char **argv)
{
glutInit(&argc, argv);
glutInitWindowSize(500, 300);
glutInitWindowPosition(100, 100);
...
}
SEE ALSO
glutInit, glutCreateWindow, glutCreateSubWindow, glutReshapeFunc, glutGet
AUTHOR
Mark J. Kilgard (mjk@nvidia.com)
GLUT 3.7 glutInitWindowPosition(3GLUT)