Thank you! Thank you! Thank you. This is exactly the type of thing I was looking for. My sed skills are rudimentary and my awk not even up to that level, but this gives me somewhere to start. I don't know if *roff can handle it at formatting time either, but this may just help me avoid trying to find out -- user/newbie friendly, *roff documentation is not terribly common.
Thanks again!
---------- Post updated at 02:01 AM ---------- Previous update was at 01:37 AM ----------
This seems to be an excellent start, but one small hiccup: running it on the following text gives mostly the desired results:
Results in :
Things go slightly haywire around the word "graduation." What might be going on?
Moderator's Comments:
Please use code tags when posting data and code samples!
Last edited by vgersh99; 11-19-2011 at 03:30 PM..
Reason: code tags, please!
I have the following sed command:
sed '/7361105/s/^\(..............................................................................................................................................................................\)....\(.*\)/\16776\2/' arch.txt > arch.tmp && mv arch.tmp arch.txt
... (4 Replies)
hi forums
i need help with a little problem i am having.
i need to count the number of fields that are in a saved variable so i can use that number to make a different function work properly.
is there a way of doing this without using SED/AWK?
anything would be greatly appreciated (4 Replies)
Hello,
I have a text file with n lines in the following format (9 column fields):
Example:
contig00012 149606 G C 49 68 60 18 c$cccccacccccccccc^c
I need to count the number of lower-case and upper-case occurences in column 9, respectively, of the... (3 Replies)
I have the following string:
31-01-2012, 09:42:37;OK;94727132638;"Mozilla/5.0 (Linux; U; Android 2.2.1)";3G;WAP;I need a script which is counting the occurrence of semicolons ( ; ) but exclude the ones from the quotation marks.
In the string given as example there are 8 semicolons but the script... (3 Replies)
Input
A.1 Q.1
A.1 Q.2
A.1 Q.3
A.2 Q.4
Explanation:
Final Output
A.1 Q.1 s1 t1
A.1 Q.2 s1 t2
A.1 Q.3 s1 t3
A.2 Q.4 s5 t5
---------- Post updated 09-28-12 at 03:38 AM ---------- Previous update was 09-27-12 at 09:10 AM ----------
Hi Guys, I was able to do until... (11 Replies)
Hello All,
I got a requirement when I was working with a file. Say the file has unloads of data from a table in the form
1|121|asda|434|thesi|2012|05|24|
1|343|unit|09|best|2012|11|5|
I was put into a scenario where I need the field count in all the lines in that file. It was simply... (6 Replies)
Hi,
let's say an input looks like:
A|C|C|D
A|C|I|E
A|B|I|C
A|T|I|B
as the title of the thread explains, I am trying to get something like:
1|A=4
2|C=2|B=1|T=1
3|I=3|C=1
4|D=1|E=1|C=1|B=1
i.e. a count of every character in each field (first column of output) independently, sorted... (4 Replies)
Hi Friends ,
I am having one problem as stated file .
Having an input CSV file as shown in the code
U_TOP_LOGIC/U_HPB2/U_HBRIDGE2/i_core/i_paddr_reg_2_/Q,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0... (4 Replies)
Discussion started by: kshitij
4 Replies
LEARN ABOUT REDHAT
gluperspective
GLUPERSPECTIVE(3G)GLUPERSPECTIVE(3G)NAME
gluPerspective - set up a perspective projection matrix
C SPECIFICATION
void gluPerspective( GLdouble fovy,
GLdouble aspect,
GLdouble zNear,
GLdouble zFar )
PARAMETERS
fovy Specifies the field of view angle, in degrees, in the y direction.
aspect Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y
(height).
zNear Specifies the distance from the viewer to the near clipping plane (always positive).
zFar Specifies the distance from the viewer to the far clipping plane (always positive).
DESCRIPTION
gluPerspective specifies a viewing frustum into the world coordinate system. In general, the aspect ratio in gluPerspective should match
the aspect ratio of the associated viewport. For example, aspect=2.0 means the viewer's angle of view is twice as wide in x as it is in y.
If the viewport is twice as wide as it is tall, it displays the image without distortion.
The matrix generated by gluPerspective is multipled by the current matrix, just as if glMultMatrix were called with the generated matrix.
To load the perspective matrix onto the current matrix stack instead, precede the call to gluPerspective with a call to glLoadIdentity.
Given f defined as follows:
f=cotangent(____)
The generated matrix is
(______ 0 0 0 )
0 f 0 0
0 0 __________ _____________
0 0 -1 0
NOTES
Depth buffer precision is affected by the values specified for zNear and zFar. The greater the ratio of zFar to zNear is, the less effec-
tive the depth buffer will be at distinguishing between surfaces that are near each other. If
r=_____
roughly log2r bits of depth buffer precision are lost. Because r approaches infinity as zNear approaches 0, zNear must never be set to 0.
SEE ALSO glFrustum(3G), glLoadIdentity(3G), glMultMatrix(3G), gluOrtho2D(3G)GLUPERSPECTIVE(3G)