If you are trying to insert a pagebreak every 50 lines, that's not too hard to do in perl:
Code:
$maxlines=50;
$linenum=0;
while (<STDIN>) {
$linenum++;
if ($linenum > $maxlines) {
$linenum=0;
print "^L";
}
print "$_";
}
(Untested)
You'll need to put an actual page break in there where it has ^L (ie don't copy-paste the ^ and the L characters, use a single control-L character).
i need to divide this count by 2, what variable can i use in my script?
26 hcscprod_cpus_totals /2 = 13
13 hcncprod_cpus_totals /2= 6.5
541 ktazp_cpus_totals /2= 270.5
346 ktazd_cpus_totals /2=173
110 ktazi_cpus_totals /2=55
10 ktazq_cpus_totals /2=5 (2 Replies)
Dear,
i want to devide the first 4 values from a raw over the next 4 values like the following:
$1+$2+$3+$4 / $5+$6+$7+$8
using AWK ....can someone help me?
Sanks (1 Reply)
Hi,
I have a issue dividing 2 values in UNIX
a=15
b=100
c = a / b ==> and it is returning 0 instead of 0.15 into variable C.
How can i resolve this issue ? please help (1 Reply)
Hello ,
When using vim, can ctag and cscope support recording search results and displaying the history results ? Once I jump to one tag, I can use :tnext to jump to next tag, but how can I display the preview search result? (0 Replies)
Hi All,
here D Prints the bytes value .plz help to convert the variable D value to MB in new variable $E
D=`more $C |awk '{print $6;}'`
Thanks in Advance.:) (3 Replies)
F= `expr $E/$S`
output
test5.sh: line 45: 1296863.27001857757568359375/21997: No such file or directory
can any one help me ,i just want to divide the $E/$S and Print o/p in F. (3 Replies)
Hi,
I've been working on a few scripts and have been getting great info.
How, would I include in the below script, how I would let a user know that if they divide a SECOND number by zero, that they would get a divide by zero error? What's the easiest way of working this?
Cordially,
joe.
... (1 Reply)
FYI, today I moved the "Advanced Stats" page from the forum home page to the search results pages.
This means that at the top of the search results like "Today's Post" and "New Posts" and keyword searches, the stats will appear at the top of that page instead of the home page.
The reason of... (3 Replies)
Good morning all,
This is the file name in question OD_Orders_2019-02-19.csv
I am trying to create a bash script to read into files with yesterdays date on the file name while retaining the rest of the files name. I would like for $y to equal, the name of the file with a formula output with... (2 Replies)
Discussion started by: Ibrahim A
2 Replies
LEARN ABOUT MOJAVE
clogf
CLOG(3) BSD Library Functions Manual CLOG(3)NAME
clog -- complex logarithm function
SYNOPSIS
#include <complex.h>
double complex
clog(double complex z);
long double complex
clogl(long double complex z);
float complex
clogf(float complex z);
DESCRIPTION
clog(z) returns the complex logarithm of z.
clog(conj(z)) = conj(clog(z)), for all complex floating-point numbers z.
SPECIAL VALUES
The conjugate symmetry of clog() is used to abbreviate the specification of special values.
clog(-0 + 0i) returns -inf + Pi i and raises the divide-by-zero flag.
clog(0 + 0i) returns -inf + 0i and raises the divide-by-zero flag.
clog(x + inf i) returns inf + Pi/2 i, for finite x.
clog(x + NaN i) returns NaN + NaN i.
clog(-inf + yi) returns inf + Pi i, for finite positive y.
clog(inf + yi) returns inf + 0i, for finite positive y.
clog(-inf + inf i) returns inf + 3Pi/4 i.
clog(inf + inf i) returns inf + Pi/4 i.
clog(+-inf + NaN i) returns inf + NaN i.
clog(NaN + yi) returns NaN + NaN i, for finite y.
clog(NaN + inf i) returns inf + NaN i.
clog(NaN + NaN i) returns NaN + NaN i.
NOTES SEE ALSO cexp(3)log(3)complex(3)STANDARDS
The clog() function conforms to ISO/IEC 9899:2011.
4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution