Hi All,
How can i replace the n'th occurance in a file. ?
I have a property file like
EAR;_TrackingEAR;META-INF/application.xml;xml;context-root;1;valeur
EAR;_TrackingEAR;META-INF/application.xml;xml;context-root;2;valeur2... (2 Replies)
There is scenario that i have to replace a pattern at the first 5 occurance in a file. say i need to replace 'abc' by 'xyz' at its first 5 occurance in a file a.txt,
can anybody help me how it can be done, i can do complete replacement of the pattern using sed throughtout the file. (1 Reply)
HI please let me know if there is any command to search and replace only the last occurence of a string in aline.
Eg:
" This cat is a cat with a tail longer of all cat."
I need to replace only the last "cat" in the above line.
thanks (3 Replies)
I want to replace every 2nd occurance of a string/character from a line.
ababacbsbddbsbbcbdbssb
i want to replace every s2nd b with @ like below
should be like
aba@acbs@ddbs@bc@dbss@ (3 Replies)
Hello,
I'm here again asking for your precious help.
I'm writing some code to convert csv files to html.
I want to highlight header and also I want to have rows with alternate colors.
So far this is my work###Let's format first line only with some color
cat $fileIN".tmp1" | sed '1... (7 Replies)
Hi I want to replace only the last occurance of "union all" in input file with ";"
I tried with sed 's/union all/;/g' in my input file, it replaced in all lines of input file
Eg:
select column1,column2 from test1 group by 2 union all
select column1,column2 from test2 group by 2 union all
... (9 Replies)
In the below directory I am trying to delete all lines with a .bam extention that have the pattern IonCode_ followed by an even number. I am also trying to delete all lines with a .fastq extention that have the pattern IonCode_ followed by an odd number. I was going to use find but can see all... (6 Replies)
Discussion started by: cmccabe
6 Replies
LEARN ABOUT HPUX
powd128
powd64(3M)powd64(3M)NAME
powd64(), powd128(), powd32() - decimal power functions
SYNOPSIS DESCRIPTION
The function returns
is a version of it takes arguments and returns a result.
is a version of it takes arguments and returns a result.
These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward.
USAGE
To use any of these functions, compile with the option.
Make sure your program defines and then includes
Link in the math library by specifying or on the linking command line.
For more information, see the at the following site:
RETURN VALUE
and raises the divide-by-zero floating-point exception for y an odd integer < 0.
returns +infinity and raises the divide-by-zero floating-point exception for y<0 and not an odd integer.
for y an odd integer > 0.
returns +0 for y>0 and not an odd integer.
returns 1.
returns 1 for any x, even NaN.
returns 1 for any x, even NaN.
returns NaN and raises the invalid floating-point exception for finite x<0 and finite non-integer y.
returns +infinity for |x|<1.
returns +0 for |x|>1.
returns +0 for |x|<1.
returns +infinity for |x|>1.
returns -0 for y an odd integer < 0.
returns +0 for y<0 and not an odd integer.
returns -infinity for y an odd integer > 0.
returns +infinity for y>0 and not an odd integer.
returns +0 for y<0.
returns +inf for y>0.
Otherwise, if either argument is NaN, then returns NaN.
returns the properly signed infinity (or, in some non-default rounding direction modes, the properly signed maximum-magnitude finite num-
ber) in lieu of a value whose magnitude is too large, and raises the overflow and inexact exceptions.
raises the underflow exception whenever a result is tiny (essentially subnormal or zero) and inexact.
raises the inexact exception whenever a rounded result does not equal the mathematical result.
ERRORS
For finite x<0 and finite non-integer y, sets to
sets to if y is an odd integer < 0.
sets to if y<0 and not an odd integer.
If the correct value would overflow, sets to
SEE ALSO cbrtd64(3M), expd64(3M), logd64(3M), scalblnd64(3M), scalbnd64(3M), sqrtd64(3M), math(5).
STANDARDS CONFORMANCE
These functions conform to ISO/IEC TR 24732, "Extension for the programming language C to support decimal floating-point arithmetic".
HP Integrity Server Only powd64(3M)