08-13-2013
Where does your input come from? how is the format? Give us samples
--ahamed
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would I add text to the beginning of each line in a text file in a script right after the file is created from another text file. (4 Replies)
Discussion started by: cubs0729
4 Replies
2. Shell Programming and Scripting
I'm needing to add a "hour:min" to the end of each line in a document. The document in this case is only going to be one line.
if this inserts it at the end, what needs to be changed to add something at the end...
/bin/echo "%s/^/$filler/g\nwq!" | ex -s $oFile
Thank you... (2 Replies)
Discussion started by: cubs0729
2 Replies
3. Shell Programming and Scripting
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example:
0 8 7 6 5 5
7 8 9 0 7 9
7 8 9 0 1 2
And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this:
21 0 8 7 6 5 5
7 8... (4 Replies)
Discussion started by: hertingm
4 Replies
4. Shell Programming and Scripting
I have a tab delimited text file,
id name distance
1 3325167 0.334561754018
2 3290488 0.389444269458
3 3288794 0.392312701782
4 3347602 0.392532202097
5 3295355 0.394394169485
I need to add a line after the header line. The first and third field of... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
5. Shell Programming and Scripting
I have a text file that has data like:
Data "12345#22"
Fred
ID 12345
Age 45
Wilma
Dino
Data "123#22"
Tarzan
ID 123
Age 33
Jane
I need to figure out a way of adding 1,000,000 to the specific lines (always same format) in the file, so it becomes:
Data "1012345#22"
Fred
ID... (16 Replies)
Discussion started by: say170
16 Replies
6. Shell Programming and Scripting
If I have a txt file with
test.txt
somelineoftext
and I want to set that line of text to variable in a script:
so
#!/bin/bash
var=''
becomes
#!/bin/bash
var='somelineoftext' (3 Replies)
Discussion started by: digitalviking
3 Replies
7. Shell Programming and Scripting
Hi,
I want to add a text to the end of the specific line in a file. Now my file looks like this:
999
111
222
333
111
444
I want to add the string " 555" to the end of the first line contaning 111. Moreover, I want to insert a newline after this line containg the "000" string. The... (8 Replies)
Discussion started by: wenclu
8 Replies
8. Shell Programming and Scripting
Hi All,
I have been using a program on windows called AutoKey.
My environment at work is Linux and I have been experimenting with expect. Very powerful. I can move my AutoKey scripts to Linux using Expect once I am educated on how to read from a file using Expect.
My application would be... (1 Reply)
Discussion started by: quemalr
1 Replies
9. Shell Programming and Scripting
Is there a more simple way to add text to a variable
I havevar="blue"
and like to add green
to getecho $var
blue green
Here is how I do it.
var=$(echo "${var} green")
---------- Post updated at 13:23 ---------- Previous update was at 13:12 ----------
:o Uff
Not always easy to see the... (2 Replies)
Discussion started by: Jotne
2 Replies
10. Shell Programming and Scripting
I need some help. I would like to read in a text file.
Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01.
Is this possible? any help is appreciated. (2 Replies)
Discussion started by: xChristopher
2 Replies
LEARN ABOUT MOJAVE
glteximage2dmultisample
GLTEXIMAGE2DMULTISAM(3G) OpenGL 3.3 GLTEXIMAGE2DMULTISAM(3G)
NAME
glTexImage2DMultisample - establish the data storage, format, dimensions, and number of samples of a multisample texture's image
C SPECIFICATION
void glTexImage2DMultisample(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height,
GLboolean fixedsamplelocations);
PARAMETERS
target
Specifies the target of the operation. target must be GL_TEXTURE_2D_MULTISAMPLE or GL_PROXY_TEXTURE_2D_MULTISAMPLE.
samples
The number of samples in the multisample texture's image.
internalformat
The internal format to be used to store the multisample texture's image. internalformat must specify a color-renderable,
depth-renderable, or stencil-renderable format.
width
The width of the multisample texture's image, in texels.
height
The height of the multisample texture's image, in texels.
fixedsamplelocations
Specifies whether the image will use identical sample locations and the same number of samples for all texels in the image, and the
sample locations will not depend on the internal format or size of the image.
DESCRIPTION
glTexImage2DMultisample establishes the data storage, format, dimensions and number of samples of a multisample texture's image.
target must be GL_TEXTURE_2D_MULTISAMPLE or GL_PROXY_TEXTURE_2D_MULTISAMPLE. width and height are the dimensions in texels of the texture,
and must be in the range zero to GL_MAX_TEXTURE_SIZE - 1. samples specifies the number of samples in the image and must be in the range
zero to GL_MAX_SAMPLES - 1.
internalformat must be a color-renderable, depth-renderable, or stencil-renderable format.
If fixedsamplelocations is GL_TRUE, the image will use identical sample locations and the same number of samples for all texels in the
image, and the sample locations will not depend on the internal format or size of the image.
When a multisample texture is accessed in a shader, the access takes one vector of integers describing which texel to fetch and an integer
corresponding to the sample numbers describing which sample within the texel to fetch. No standard sampling instructions are allowed on the
multisample texture targets.
NOTES
glTexImage2DMultisample is available only if the GL version is 3.2 or greater.
ERRORS
GL_INVALID_OPERATION is generated if internalformat is a depth- or stencil-renderable format and samples is greater than the value of
GL_MAX_DEPTH_TEXTURE_SAMPLES.
GL_INVALID_OPERATION is generated if internalformat is a color-renderable format and samples is greater than the value of
GL_MAX_COLOR_TEXTURE_SAMPLES.
GL_INVALID_OPERATION is generated if internalformat is a signed or unsigned integer format and samples is greater than the value of
GL_MAX_INTEGER_SAMPLES.
GL_INVALID_VALUE is generated if either width or height negative or is greater than GL_MAX_TEXTURE_SIZE.
GL_INVALID_VALUE is generated if samples is greater than GL_MAX_SAMPLES.
SEE ALSO
glTexImage3D(), glTexImage2DMultisample()
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 GLTEXIMAGE2DMULTISAM(3G)