01-16-2015
Thank you RavinderSingh !!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
Could anyone help me in changing a tabular format output to comma seperated file pls in K-sh. Its very urgent.
E.g : username empid
------------------------
sri 123
to
username,empid
sri,123
Thanks,
Hema:confused: (2 Replies)
Discussion started by: Hemamalini
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I have a log file which contains data in tabular format(3 columns(total, posted, rejected) and 2 rows(close, total)) as below.
TOTAL POSTED REJECTED
CLOSE 3 3 0
TOTAL 3 3 0
I have to search for all Total... (1 Reply)
Discussion started by: akash028
1 Replies
3. Shell Programming and Scripting
FILE_NAME VER TYPE DELETED_DATE CREATED_DATE SIZE LOCATION
hello 1 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
hello 2 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
hello 3 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
hello 4 d 2010-08-09 2010-08-09 4096 /home/xxxxx/project/
... (4 Replies)
Discussion started by: classic
4 Replies
4. Ubuntu
Hi all,
Is there a way to convert full data matrix to linearised left data matrix?
e.g full data matrix
Bh1 Bh2 Bh3 Bh4 Bh5 Bh6 Bh7
Bh1 0 0.241058 0.236129 0.244397 0.237479 0.240767 0.245245
Bh2 0.241058 0 0.240594 0.241931 0.241975 ... (8 Replies)
Discussion started by: evoll
8 Replies
5. Shell Programming and Scripting
is it possible to count the number of keys based on state and cell and output it as a simple matrix.
Ex: cell1-state1 has 2 keys
cell3-state1 has 4 keys.
Note: Insert 0 if no data available.
input
key states cell
key1 state1 cell1
key1 state2 cell1
key1 ... (21 Replies)
Discussion started by: quincyjones
21 Replies
6. UNIX for Dummies Questions & Answers
Hi
I am having a file which is required to be presented in the under-noted output form. Please suggest.
Input:
Kapil:
apple 4
banana 6
cherry 0
Manoj:
apple 13
banana
cheery 2
Output:
apple banana cherry
Kapil: 4 6 0
Manoj: 13 2
Thanks in... (4 Replies)
Discussion started by: vanand420
4 Replies
7. Shell Programming and Scripting
Hi,
I have a data file with :
01/28/2012,1,1,98995
01/28/2012,1,2,7195
01/29/2012,1,1,98995
01/29/2012,1,2,7195
01/30/2012,1,1,98896
01/30/2012,1,2,7083
01/31/2012,1,1,98896
01/31/2012,1,2,7083
02/01/2012,1,1,98896
02/01/2012,1,2,7083
02/02/2012,1,1,98899
02/02/2012,1,2,7083
I... (1 Reply)
Discussion started by: himanish
1 Replies
8. UNIX for Dummies Questions & Answers
Dear Unixers,
I'm having some difficulty in converting an n x m data matrix into a dataset of 3 columns and nxm rows. As an example I want to convert this dataset
2 3 4 5
2 0.0 0.0 0.1 0.1
6 -0.3 2.0 0.0 0.3
7 -0.6 -1.1 0.5 0.3
9 -0.9 -4.1 -0.7 0.5
... (2 Replies)
Discussion started by: tintin72
2 Replies
9. Shell Programming and Scripting
How can i convert the below data to a simpler format :-
cat tabular.txt
User 1 Details :-
First Name = Tom
Middle Name =
Last Name = Hanks
Age = 40
Address =
User 2 details :-
First Name = Mike
Middle Name =
Last Name = Tyson
Age = 50
Address = (2 Replies)
Discussion started by: lazydev
2 Replies
10. Shell Programming and Scripting
Please provide script/commands to convert text file to HTML tabular format.
No need of styles and colours, just output and a heading in table is required.
Output file will be send via email and will be seen from outlook.
(script required without using awk).
output file content: (sar... (7 Replies)
Discussion started by: Veera_V
7 Replies
LEARN ABOUT MOJAVE
glmultmatrix
GLMULTMATRIX(3G) GLMULTMATRIX(3G)
NAME
glMultMatrixd, glMultMatrixf - multiply the current matrix with the specified matrix
C SPECIFICATION
void glMultMatrixd( const GLdouble *m )
void glMultMatrixf( const GLfloat *m )
PARAMETERS
m Points to 16 consecutive values that are used as the elements of a 4 x 4 column-major matrix.
DESCRIPTION
glMultMatrix multiplies the current matrix with the one specified using m, and replaces the current matrix with the product.
The current matrix is determined by the current matrix mode (see glMatrixMode). It is either the projection matrix, modelview matrix, or
the texture matrix.
EXAMPLES
If the current matrix is C, and the coordinates to be transformed are, v = (v[0], v[1], v[2], v[3]). Then the current transformation is C
X v, or
c[0] c[4] c[8] c[12] v[0]
c[1] c[5] c[9] c[13] v[1]
c[2] c[6] c[10] c[14] X v[2]
c[3] c[7] c[11] c[15] v[3]
Calling glMultMatrix with an argument of m = m[0], m[1], ..., m[15] replaces the current transformation with (C X M) x v, or
c[0] c[4] c[8] c[12] m[0] m[4] m[8] m[12] v[0]
c[1] c[5] c[9] c[13] m[1] m[5] m[9] m[13] v[1]
c[2] c[6] c[10] c[14] X m[2] m[6] m[10] m[14] X v[2]
c[3] c[7] c[11] c[15] m[3] m[7] m[11] m[15] v[3]
Where 'X' denotes matrix multiplication, and v is represented as a 4 X 1 matrix.
NOTES
While the elements of the matrix may be specified with single or double precision, the GL may store or operate on these values in less than
single precision.
In many computer languages 4 X 4 arrays are represented in row-major order. The transformations just described represent these matrices in
column-major order. The order of the multiplication is important. For example, if the current transformation is a rotation, and
glMultMatrix is called with a translation matrix, the translation is done directly on the coordinates to be transformed, while the rotation
is done on the results of that translation.
ERRORS
GL_INVALID_OPERATION is generated if glMultMatrix is executed between the execution of glBegin and the corresponding execution of glEnd.
ASSOCIATED GETS
glGet with argument GL_MATRIX_MODE
glGet with argument GL_COLOR_MATRIX
glGet with argument GL_MODELVIEW_MATRIX
glGet with argument GL_PROJECTION_MATRIX
glGet with argument GL_TEXTURE_MATRIX
SEE ALSO
glLoadIdentity, glLoadMatrix, glMatrixMode, glPushMatrix
GLMULTMATRIX(3G)