10-06-2011
Thank you for keeping us informed, and a special thank you for showing that new users can indeed write meaningful subjects and do use their own brains trying to solve a problem, instead of just relying on others.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi.
Is there a way to convert a value outputted as(for example):
4.14486e+06 into a regular format: 4144860
I suppose in plain english i want to move the decimal point 6 places to the right.
please??? (2 Replies)
Discussion started by: rleebife
2 Replies
2. Shell Programming and Scripting
Hi,
Here is my script to read a file into array:
awk -F '+' '
# load first file into array indexed by fields 1 and 2
NR == FNR {
file1nr = FNR
for (i=3; i<NF; i++) {
file1 = $i
}
I have this... (5 Replies)
Discussion started by: Sangtha
5 Replies
3. Shell Programming and Scripting
awk -F"\t" -vv1=$name 'BEGIN{OFS="\t"} {gsub ("http://www."v1".com","",$6);print $1"\t-\t-","",$6,$7,$9,$2,$14,$15"\t""Apache=-\t-",$8*1000000"\t-\t-\t-\tdeflate=-\trmt=-"}' file.txt > a.txt
file.txt
144.130.7.153 www.chi.com - 18/Jul/2010:00:00:00 +0000 GET... (3 Replies)
Discussion started by: sandy1028
3 Replies
4. Shell Programming and Scripting
Hi,
I just want to sort my file with exponential notation. For example:
1;2;4;s
1;5e-01;4;s
1;1;4;s
I used sort -gk2, but it does not sort in the correct way. What's wrong? (15 Replies)
Discussion started by: NilsMueller
15 Replies
5. Shell Programming and Scripting
I have the below awk command to search a row and find the line number. It returns the value in exponential. I understand we can use the print "%.0f\n" to convert the exponential. I wanted to have this in my awk command. Can anyone advise
bnd=`awk '/^GS/{p=NR}$0~"^ABC.*\\*"k{f=1}/^GE/&&f{print... (3 Replies)
Discussion started by: Muthuraj K
3 Replies
6. Shell Programming and Scripting
Hello Everyone!
I hope you can help me!!
I have this little problem:
I executed oracle query and the output of the result are in a text file called "DATAFILE.txt", and the value of file is: 97.37
Well, the script compare the result in text file with a condition:
... (5 Replies)
Discussion started by: bobbasystem
5 Replies
7. Shell Programming and Scripting
Hello guys,
i have got a flat file and it has got balance amount value as one of its fields. my mission is to add the total of those balance values. i am getting that but the result is coming up in exponential form, which is not the right way. i want to see the sum as a normal decimal number but... (7 Replies)
Discussion started by: jdsony
7 Replies
8. Shell Programming and Scripting
I'm using the following command, but how can I avoid printing exponential value (highlighted):-
awk ' BEGIN { OFS=FS="|" } { if(NF>4) $10=int(((3.77*$11)/100 + $11)); } { print } ' infile
CR|20121022|105|GSM|N|SAN|00122|SAN|75082|6.03929e+06|5819880|5794769|25111... (7 Replies)
Discussion started by: Yoda
7 Replies
9. UNIX for Dummies Questions & Answers
I have tried the following commands and can't get a number to format with commas:
echo 1234567.12 |awk '{printf("%-12s %20s\n", $0, comma($0)) }'
This prints out value 50000 without a comma
for i in *13*; do (cd $i && du -sk . && echo $i);done|grep -v 0000|gawk -F OFS="," ' {SUM += $1}... (8 Replies)
Discussion started by: newbie2010
8 Replies
10. UNIX for Beginners Questions & Answers
How to change the format of an excel from exponential to text through UNIX command
We have a pipe delimited file in which one particular A column is a combination of number+text and while converting into
excel using tr command it is generating a exponential data for the A column.
Kindly... (2 Replies)
Discussion started by: AbiramiRaja
2 Replies
CEXP(3) BSD Library Functions Manual CEXP(3)
NAME
cexp -- complex exponential function
SYNOPSIS
#include <complex.h>
double complex
cexp(double complex z);
long double complex
cexpl(long double complex z);
float complex
cexpf(float complex z);
DESCRIPTION
cexp(z) returns the complex exponential of z.
cexp(conj(z)) = conj(cexp(z)), for all complex floating-point numbers z.
SPECIAL VALUES
The conjugate symmetry of cexp() is used to abbreviate the specification of special values.
cexp(+-0 + 0i) returns 1 + 0i.
cexp(x + inf i) returns NaN + NaN i, and raises the invalid flag, for finite x.
cexp(x + NaN i) returns NaN + NaN i, for finite x.
cexp(inf + 0i) returns inf + 0i.
For the following two cases, cis(y) denotes cos(y) + I*sin(y).
cexp(-inf + yi) returns 0*cis(y), for finite y.
cexp(inf + yi) returns inf*cis(y), for finite nonzero y.
cexp(-inf + inf i) returns -0 + 0i.
cexp(inf + inf i) returns -inf + NaN i, and raises the invalid flag.
cexp(-inf + NaN i) returns -0 + 0i.
cexp(inf + NaN i) returns -inf + NaN i.
cexp(NaN + 0i) returns NaN + 0i.
cexp(NaN + yi) returns NaN + NaN i for all nonzero numbers y.
cexp(NaN + NaN i) returns NaN + NaN i.
SEE ALSO
exp(3) clog(3) complex(3)
STANDARDS
The cexp() function conforms to ISO/IEC 9899:2011.
4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution