Shamrock,
I think the code you provided is the same as what I originally tried that only seems to work some of the time:
Ahamed, your snippet works, but I was having trouble fitting it into the larger task I was trying to accomplish.
Let me explain my problem in full. I have a trace file I will use as input that looks like the following:
I would like to convert all of the disk information in the 2nd column to be a device number like 0, 1, 2, etc. I don't care which device number gets assigned to which string. It just has to be unique and match to the original.
So...
"Disk4:\s93" can simply become 0
"Disk4:\s94" can simply become 1
"Disk4:\s95\s96\s97" can simply become 2
For example, I want my completed output file to look like this:
Hopefully this explains what I'm trying to do better. Thank you!
Hi
I have a linux box attched to a SAN storage from EMC with RAID 5 .I understand that it has 3g cache howver a 20gb file creation takes too much time here are my results any ideas why
time dd if=/dev/zero of=disk.img bs=1048576 count=20000
20000+0 records in
20000+0 records out
997.59s... (2 Replies)
Hi all,
I have a server running in RH ES4, the SCSI HD are running in RAID 1.
I backup the LVM config by using 'vgcfgbackup' and then remove all the HD.
I insert another HD (same size & branch but different model) into the machine and run linux rescue to recreate the... (0 Replies)
Hi,
I have a script which greps for a word in a file contains records.
I grabbed a particular column & sent the colomn values to a file.
I need to find each column value, the times it appeared in the file.
My script is:
grep sceneority <file> | cut -f 6 >> swi
With... (4 Replies)
Hi, I'm having a problem when attempting to define the OCR location for my 10g RAC setup on Solaris 10. I get the following error:
The specified shared raw partition /dev/did/rdsk/d1s0 may not have the correct permission. Verify that the partition is owned by Oracle user.
As per the Oracle10g... (15 Replies)
Good morning to one and all :-) Thank god its Friday, as its bee na rubbish week for me !
So, a quick question. Disks ! Ive got a few local disks, and a few SAN disks used on my solaris server. Whats confusing me, and Im not sure if there's an issue at the SAN end, or my end, regarding the... (3 Replies)
Hi
I have a log that look like this:
12:20:28.522 Connection from IP: 185.164.118.136 Login Failed!
12:20:29.389 Connection from IP: 84.20.182.63 Login Failed!
12:20:30.111 Connection from IP: 80.180.143.79 Login Failed!
12:20:31.038 Connection from IP: 83.226.102.106 Login Failed!... (1 Reply)
I'm facing a strange problem, please help me out.
Here we go.
I want to count number of fields in particular file.
filename and delimiter character will be passed through parameter.
On command prompt if i type following i get 27 as output (which is correct)
cat customer.dat | head -1 | awk... (12 Replies)
Hi,
The scenario is like this:
1.We needed to assign two hdisks to an LPAR
2.SAN team gives us two ldevs
3.One of our VIO is hanging on cfgmgr operation
4. We ran cfgmgr on the smooth VIO. Got the disks and assigned the disks from there to the LPAR.(By passed the other VIO as in didnt run... (11 Replies)
Hello,
I am using solaris 10 x86. my root and backup slices is having same memory 10 GB and same cylinders numbers . My root and backup cylinders ends at same cylinder number 1031. so for creating a new slice i am giving starting cylinder from 1302 and this is giving me error as "out of range" .... (2 Replies)
Hi,
I have a log file which amongst other text has these lines:
(id is always the same format - )
e.g.
<username>user1</username>
<name>fdfsdf</name>
Multiple other tags
<id>A111</id>
<username>user2</username>
<name>fdfsdf</name>
Multiple other tags
<id>A222</id>... (1 Reply)
Discussion started by: arsenalfan01
1 Replies
LEARN ABOUT OSX
gludisk
GLUDISK(3G)GLUDISK(3G)NAME
gluDisk - draw a disk
C SPECIFICATION
void gluDisk( GLUquadric* quad,
GLdouble inner,
GLdouble outer,
GLint slices,
GLint loops )
PARAMETERS
quad Specifies the quadrics object (created with gluNewQuadric).
inner Specifies the inner radius of the disk (may be 0).
outer Specifies the outer radius of the disk.
slices Specifies the number of subdivisions around the z axis.
loops Specifies the number of concentric rings about the origin into which the disk is subdivided.
DESCRIPTION
gluDisk renders a disk on the z = 0 plane. The disk has a radius of outer, and contains a concentric circular hole with a radius of inner.
If inner is 0, then no hole is generated. The disk is subdivided around the z axis into slices (like pizza slices), and also about the z
axis into rings (as specified by slices and loops, respectively).
With respect to orientation, the +z side of the disk is considered to be "outside" (see gluQuadricOrientation). This means that if the
orientation is set to GLU_OUTSIDE, then any normals generated point along the +z axis. Otherwise, they point along the -z axis.
If texturing has been turned on (with gluQuadricTexture), texture coordinates are generated linearly such that where r = outer, the value
at (r, 0, 0) is (1, 0.5), at (0, r, 0) it is (0.5, 1), at (-r, 0, 0) it is (0, 0.5), and at (0, -r, 0) it is (0.5, 0).
SEE ALSO
gluCylinder, gluNewQuadric, gluPartialDisk, gluQuadricOrientation, gluQuadricTexture, gluSphere
GLUDISK(3G)