Thank you very much Agama, this worked perfectly!!
---------- Post updated at 10:51 AM ---------- Previous update was at 10:47 AM ----------
Thank you very much Agama, this worked perfectly!!!
-----------------------------------------------------
Quote:
Originally Posted by agama
No, I think that rdcwayx was giving an example of how you might go about it using the echo as a sample for testing.
I think this is the most straight forward way:
This will match everything from the beginning of the line to the first comma (the 10 digit number) and replace it with 'aaaaaaaaaa' You can replace the string of a's with what ever you need.
---------- Post updated at 10:53 AM ---------- Previous update was at 10:51 AM ----------
Thanks to everyone who provided input and new knowledge.
Is there a simple way of determining whether a command line arguement is numeric or not?? I tried a search and didn't find anything similar...
This is the 2nd time I've made this post.... It didn't appear that the first one showed up ??
Sorry if this is a duplicate... (1 Reply)
Is there an easy way using a command or other routine for testing whether an argument on the command line is numeric? Just want to validate... I ran a search and didn't find a similar question....
Thx (3 Replies)
I have a customer who logged some cc and bank account numbers in their apache logs. I got the cc numbers x'd out with
sed -e 's/args=\{16\}/args=XXXXXXXXXXXXXXXX/g' -e 's/cardnum=\{16\}/cardnum=XXXXXXXXXXXXXXXX/g'but that wasn't too difficult due to the value being 16 digits.
The bank account... (7 Replies)
Hi
I am very new to linux and scripting.
I need to replace numbers abc with number xyz inputting from a reference file.
I used the following command -
sed "s/$grd/$lab/" , where $grd and $lab comes from reference file.
The problem is the above line doesnt take care of space..... (1 Reply)
these are numeric ids..
222932017099186177
222932014385467392
222932017371820032
222932017409556480
I have text file having 300 millions of line as shown above. I want to find duplicates from this file. Please suggest the quicker way..
sort | uniq -d will... (3 Replies)
hi,
i have a string
" 00000069 ThreadMonitor W WSVR0606W: Thread "WebContainer : 43|null" (00000069) was previously rep
orted to be hung but has completed. It was active for approximately 47533430 milliseconds. There is/are 43 thread(s) in tot
al in the server that still may be hung."
... (4 Replies)
Hi All,
I need to found the below numeric value using unix(shell) commands in .txt file and its available in root directory.
for example: file name is siva.txt and content is
Siva_12345_werwerwe,11,22,33
Siva_12346_werwerwe,22,33,44
Siva_12347_werwerwe,55,44,66
for above string i... (2 Replies)
Hi All,
I am trying to replace a certain value from one place in a file . In the below file at position 35 I will have 8 I need to modify all 8 in that position to 7
I tried
awk '{gsub("8","7",$35)}1' infile > outfile ----> not working
sed -i 's/8/7'g' infile --- it is replacing all... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
LEARN ABOUT DEBIAN
glgetshaderprecisionformat
GLGETSHADERPRECISION(3G) [FIXME: manual] GLGETSHADERPRECISION(3G)NAME
glGetShaderPrecisionFormat - retrieve the range and precision for numeric formats supported by the shader compiler
C SPECIFICATION
void glGetShaderPrecisionFormat(GLenum shaderType, GLenum precisionType, GLint *range, GLint *precision);
PARAMETERS
shaderType
Specifies the type of shader whose precision to query. shaderType must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
precisionType
Specifies the numeric format whose precision and range to query.
range
Specifies the address of array of two integers into which encodings of the implementation's numeric range are returned.
precision
Specifies the address of an integer into which the numeric precision of the implementation is written.
DESCRIPTION
glGetShaderPrecisionFormat retrieves the numeric range and precision for the implementation's representation of quantities in different
numeric formats in specified shader type. shaderType specifies the type of shader for which the numeric precision and range is to be
retrieved and must be one of GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. precisionType specifies the numeric format to query and must be one
of GL_LOW_FLOAT, GL_MEDIUM_FLOAT GL_HIGH_FLOAT, GL_LOW_INT, GL_MEDIUM_INT, or GL_HIGH_INT.
range points to an array of two integers into which the format's numeric range will be returned. If min and max are the smallest values
representable in the format, then the values returned are defined to be: range[0] = floor(log2(|min|)) and range[1] = floor(log2(|max|)).
precision specifies the address of an integer into which will be written the log2 value of the number of bits of precision of the format.
If the smallest representable value greater than 1 is 1 + eps, then the integer addressed by precision will contain floor(-log2(eps)).
ERRORS
GL_INVALID_ENUM is generated if shaderType or precisionType is not an accepted value.
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 GLGETSHADERPRECISION(3G)