02-23-2012
Your current sh solution is as efficient as it gets. I would just stick with it.
However, you could accomplish the same task with a much more expensive pipeline that funnels the output of vminfo.pl into sed 's/[^[]*//; s/ $//'.
Regards,
Alister
This User Gave Thanks to alister For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I'm writing a bash script and I have a question.
Here's what I'm doing:
I have a file called inv.dat which contains the following:
B102:Action Figure - Teacher:79
B103:Bike - Purple:23
B104:Baseball:25
B105:Cricket Bat:15
B101:Action Figure - Fireman:15
B100:Flame-Thrower:25
... (2 Replies)
Discussion started by: netmaster
2 Replies
2. Shell Programming and Scripting
Hi all, see i have a script that takes few arguments. first one is command we do on file, next is file (mostly txt file with lot of data) third is destination where we do something with data in file. Since im new in scripting, and im learning as i go, i need some hint how to manipulate that... (3 Replies)
Discussion started by: ajemrunner
3 Replies
3. Shell Programming and Scripting
In a bash script I've set a variable that is the directory name of where an executable lives.
the_dir=`dirname $which myscript`
which equates to something like "/path/to/dir/bin"
I need to cut that down to remove the "bin" so I now have "/path/to/dir/".
This sounds easy but as a... (2 Replies)
Discussion started by: Witty
2 Replies
4. Shell Programming and Scripting
Hey all, Im kind of lost on how to do what I want so I figured I would ask.
I want to pipe STDOUT of an app to a log file, but I want to prepend each line of that output with the date and time.
Im drawing a complete blank on how to do this?? Any ideas?
i.e.
output is currently this:... (9 Replies)
Discussion started by: trey85stang
9 Replies
5. Shell Programming and Scripting
EDIT: This has been SOLVED. Thanks!
Greetings everyone,
I've posted a few threads with some quick help questions, and this is another one of those. I can't post enough gratitude for those much more knowledgeable than myself who are willing to give good advice for my minor issues. Now,... (2 Replies)
Discussion started by: Eblue562
2 Replies
6. UNIX for Advanced & Expert Users
Hi All,
I am using a bash shell and want to the following thing.
A process sends the following string to my script
BACKUP_FAIL_REASON="Failed - Application Dump CDMACA-0:grep: /opt/nortel/ca/data/1245184/sd00/image1/S110907070708HIS... (4 Replies)
Discussion started by: Pkumar Sachin
4 Replies
7. Shell Programming and Scripting
Hello guys,
here is my problem:
I got a shell script which is called by an external piece of software, the external software is not under my control. The software passes data as an argument to my script like
./bla.sh 'service;1234567890;ok;hostname;some text here'
I need to pass the... (3 Replies)
Discussion started by: snoogie
3 Replies
8. Shell Programming and Scripting
i have something like this...
echo "teCertificateId" | awk -F'Id' '{ print $1 }' | awk -F'te' '{ print $2 }'
Certifica
the awk should remove 'te' only if it is present at the start of the string.. anywhere else it should ignore it.
expected output is
Certificate (7 Replies)
Discussion started by: vivek d r
7 Replies
9. Shell Programming and Scripting
seeking assistance on comparing two arrays using bash:
array1=(disk1, disk2, disk3, disk5, disk7, vol1, vol2, vol3, vol4, vol5)
array2=(disk2, disk5 vol2, vol4 )
1) if two arrays have same elements; EXIT
else populate array3 & array4 with elements that are different between array1 & array2 as:... (3 Replies)
Discussion started by: solaix14
3 Replies
10. Shell Programming and Scripting
I need to change a file like this:
John Smith;http://www.profile1.com
John Smith;http://www.profile2.com
Frank Olsen;http://www.profile3.com
Frank Olsen;http://www.profile4.com
Into:
John Smith;http://www.profile1.com;http://www.profile2.com
Frank... (2 Replies)
Discussion started by: locoroco
2 Replies
LEARN ABOUT DEBIAN
glbindprogrampipeline
GLBINDPROGRAMPIPELIN(3G) [FIXME: manual] GLBINDPROGRAMPIPELIN(3G)
NAME
glBindProgramPipeline - bind a program pipeline to the current context
C SPECIFICATION
void glBindProgramPipeline(GLuint pipeline);
PARAMETERS
pipeline
Specifies the name of the pipeline object to bind to the context.
DESCRIPTION
glBindProgramPipeline binds a program pipeline object to the current context. pipeline must be a name previously returned from a call to
glGenProgramPipelines(). If no program pipeline exists with name pipeline then a new pipeline object is created with that name and
initialized to the default state vector.
When a program pipeline object is bound using glBindProgramPipeline, any previous binding is broken and is replaced with a binding to the
specified pipeline object. If pipeline is zero, the previous binding is broken and is not replaced, leaving no pipeline object bound. If no
current program object has been established by glUseProgram(), the program objects used for each stage and for uniform updates are taken
from the bound program pipeline object, if any. If there is a current program object established by glUseProgram(), the bound program
pipeline object has no effect on rendering or uniform updates. When a bound program pipeline object is used for rendering, individual
shader executables are taken from its program objects.
ERRORS
GL_INVALID_OPERATION is generated if pipeline is not zero or a name previously returned from a call to glGenProgramPipelines() or if such a
name has been deleted by a call to glDeleteProgramPipelines().
SEE ALSO
glCreateShader(), glCreateProgram(), glCompileShader(), glLinkProgram(), glGenProgramPipelines(), glDeleteProgramPipelines(),
glIsProgramPipeline()
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/.
[FIXME: source] 05/30/2012 GLBINDPROGRAMPIPELIN(3G)