08-07-2007
Thank you - it was very useful!
So, now I have one level, but there was 2 of them... Is it possible to use regex in index function? For example, how to find Aaaa->Bbbbb and insert it before 3rd level?
Ideas like:
awk 'if (index ($0, "[A-Za-z+->A-Za-z+]")>0) {print base $0} else {base = $0}} ' filename
does not work...
or maybe it is not necesarry to use regexes...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there!
People, i'm a new unix user, and i'm having some problems...
I'm updating some scripts (korn shell) in different servers. I use telnet to access these servers and emacs to write the scripts. One of them is an HP, and there´s no problem. But the other one is an AIX, and when i call... (1 Reply)
Discussion started by: caiohn
1 Replies
2. UNIX for Dummies Questions & Answers
After unpacking a solaris 2.6 package with success, I need to update the paths so I can "see"the new software.
The manual shows me what the path should be but I don't have a clue on how to change that.
Asking a stupid question makes me look stupid 30 sec. Not asking makes me stupid the rest of my... (5 Replies)
Discussion started by: phpote
5 Replies
3. UNIX for Dummies Questions & Answers
I am doing ls -ltrR to get long listing of files and directories, recursively. In place of files, I want to see the file names with complete path
The way it looks now is
ls -ltrR .
.:
total 866
-rwxrwxr-x 1 user ofr 945 Nov 30 2004 findwordinfiles
drwxrwxr-x 3 user ... (1 Reply)
Discussion started by: sunilav
1 Replies
4. UNIX for Advanced & Expert Users
There is a program that I am trying to run on a shell account. It depends on another program, which I have also copied to the shell account. Both are in my home directory, yet the first program has a different path hardcoded into it, which I cannot use because of permissions problems.
How can I... (3 Replies)
Discussion started by: fahadsadah
3 Replies
5. Filesystems, Disks and Memory
forgive my ignorance.
I did a search of this sub-forum for "tar -xp" and variations on the same w\out success, so here goes...
Scenario:
filename.tar file.
Desired Task:
I want to be able to extract only files from the user's public_html folder (and all those under it as an option) from... (4 Replies)
Discussion started by: Habitual
4 Replies
6. AIX
Have connected a non-IBM storage device to AIX host via fibre channel. If the storage is rebooted or a raid controller fails over whilst connected to the host, the paths that drop do not come back online when the ports become active again.
I have tried enabling dynamic tracking and delayed_fail... (3 Replies)
Discussion started by: Storeman
3 Replies
7. UNIX for Dummies Questions & Answers
Can someone cofirm that I have got the paths correct here? :confused:
$PATH_TO_TMP_DIR='/tmp';
#$PATH_TO_TMP_DIR='home/tmp';
$PATH_TO_YOUR_IMG_DIR = '/temp_images';
#$PATH_TO_YOUR_IMG_DIR = 'home/public_html/Midwich/temp_images';
Thanks (1 Reply)
Discussion started by: stubie
1 Replies
8. What is on Your Mind?
I've read through a couple of forum posts on Career issues but wanted to get some feedback that may be more personalized and whatnot.
I am brand new to the world of UNIX and Linux and while I am finding the learning curve rather steep, I find it highly rewarding and am overall enjoying the... (2 Replies)
Discussion started by: huntreilly25
2 Replies
9. Programming
I wasn't sure which forum to post this in. I am trying to compile logsurfer. After I run configure and the make, I get a complaint that paths.h is not found. I see three places where there is a paths.h:
/usr/include/pgsql/server/optimizer/paths.h... (3 Replies)
Discussion started by: brownwrap
3 Replies
10. UNIX for Dummies Questions & Answers
If I don't explain my issue well enough, I apologize ahead of time, extreme newbie here to scripting.
I'm currently learning scripting from books and have moved on to the text Wicked Cool Shell Scripts by Dave Taylor, but there are still basic concepts that I'm having trouble understanding.
... (10 Replies)
Discussion started by: Chasman78
10 Replies
LEARN ABOUT MOJAVE
glgeneratemipmap
GLGENERATEMIPMAP(3G) OpenGL 3.3 GLGENERATEMIPMAP(3G)
NAME
glGenerateMipmap - generate mipmaps for a specified texture target
C SPECIFICATION
void glGenerateMipmap(GLenum target);
PARAMETERS
target
Specifies the target to which the texture whose mimaps to generate is bound. target must be GL_TEXTURE_1D, GL_TEXTURE_2D,
GL_TEXTURE_3D, GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D_ARRAY or GL_TEXTURE_CUBE_MAP.
DESCRIPTION
glGenerateMipmap generates mipmaps for the texture attached to target of the active texture unit. For cube map textures, a
GL_INVALID_OPERATION error is generated if the texture attached to target is not cube complete.
Mipmap generation replaces texel array levels level base + 1 through q with arrays derived from the level base array, regardless of their
previous contents. All other mimap arrays, including the level base array, are left unchanged by this computation.
The internal formats of the derived mipmap arrays all match those of the level base array. The contents of the derived arrays are computed
by repeated, filtered reduction of the level base array. For one- and two-dimensional texture arrays, each layer is filtered independently.
ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted texture targets.
GL_INVALID_OPERATION is generated if target is GL_TEXTURE_CUBE_MAP and the texture bound to the GL_TEXTURE_CUBE_MAP target of the active
texture unit is not cube complete.
SEE ALSO
glTexImage2D(), glBindTexture(), glGenTextures()
COPYRIGHT
Copyright (C) 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
OpenGL 3.3 03/08/2011 GLGENERATEMIPMAP(3G)