Sponsored Content
Full Discussion: sum in exponential form
Top Forums Shell Programming and Scripting sum in exponential form Post 302593326 by ahamed101 on Thursday 26th of January 2012 01:03:40 PM
Old 01-26-2012
Code:
printf("%.2f\n", x)

BTW, the $ is part of your prompt!

--ahamed
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Changing Unix form to Microsoft Word form to be able to email it to someone.

Please someone I need information on how to change a Unix form/document into a microsoft word document in order to be emailed to another company. Please help ASAP. Thankyou :confused: (8 Replies)
Discussion started by: Cheraunm
8 Replies

2. Shell Programming and Scripting

Convert exponential value to decimal

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

exponential format

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

Exponential issues

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

5. Shell Programming and Scripting

Convertion from Exponential to Decimal

I am trying to read values from excel and perform some calculations but I am getting below error: expr 2.326227180240883E7 / 8.509366417956961E8 expr: non-numeric argument Can anyone let me know how do i convert thse exponential numbers to decimal. (2 Replies)
Discussion started by: sachinnayyar
2 Replies

6. Shell Programming and Scripting

Transpose Data form Different form

HI Guys, I have data in File A.txt RL03 RL03_A_1 RL03_B_1 RL03_C_1 RL03 -119.8 -119.5 -119.5 RL07 RL07_A_1 RL07_B_1 RL07_C_1 RL07 -119.3 -119.5 -119.5 RL15 RL15_A_1 RL15_C_1 RL15 -120.5 -119.4 RL16... (2 Replies)
Discussion started by: asavaliya
2 Replies

7. Shell Programming and Scripting

AWK - Avoid exponential value

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

8. Shell Programming and Scripting

Remove x lines form top and y lines form bottom using AWK?

How to remove x lines form top and y lines form bottom. This works, but like awk only cat file | head -n-y | awk 'NR>(x-1)' so remove last 3 lines and 5 firstcat file | head -n-3 | awk 'NR>4' (5 Replies)
Discussion started by: Jotne
5 Replies

9. Shell Programming and Scripting

Awk-Exponential Values

Hi Friends, My input Gene1 4.14887050399078e-49 Gene2 5.39999891278828e-10 Gene 2.22108326729483e-11 How do I change the above exponential values to normal values? Thanks (3 Replies)
Discussion started by: jacobs.smith
3 Replies
balance(8)						      System Manager's Manual							balance(8)

NAME
balance - Balances the percentage of used space among volumes in a domain. SYNOPSIS
/usr/sbin/balance [-v] domain OPTIONS
Displays information on which files are being moved to different volumes. Selecting this option slows down the balance procedure. OPERANDS
Specifies the name of the AdvFS file domain. DESCRIPTION
The balance utility evenly distributes the percentage of used space between volumes in a multivolume domain. This improves performance and evens the distribution of future file allocations. Use the showfdmn command to determine the percentage of used space on each volume. This information allows you to determine the need to balance the volumes. The balance utility can be used at any time, but it is particularly useful after adding or removing a volume (addvol, rmvol) because these procedures can cause file distribution to become uneven. When you plan to run both the defragment and balance utilities on the same domain, run the balance utility before running the defragment utility. The balance utility often improves the balance of free space, thus enabling the defragment utility to run more quickly. Before you can balance volumes in a file domain, all filesets in the file domain must be mounted. If you try to balance volumes in an active file domain that includes unmounted filesets, the system displays an error message indicating that a fileset is unmounted. RESTRICTIONS
You must be the root user to use this utility. You cannot run the balance utility while the addvol, rmvol, defragment, rmfset, or balance utility is running on the same file domain. If you attempt to do this, a warning message is displayed. The balance utility does not operate on striped files in the domain and does not include them in its calculations on used space. EXAMPLES
The following example shows the procedure for determining the percentage of used space on each volume of the two-volume usr_domain file domain and then redistributing the files to balance the percentage of used space. The final showfdmn command shows the redistributed per- centage of used space. # showfdmn usr_domain Id Date Created LogPgs Domain Name 2dcab512.000d1ed0 Fri May 7 14:22:26 1999 512 usr_domain Vol 512-Blks Free % Used Cmode Rblks Wblks Vol Name 1L 819200 126848 85% on 128 128 /dev/dsk8g 2 768281 768080 0% on 128 128 /dev/dsk9d ---------- ---------- ------ 1587481 894928 44% # balance usr_domain balance: Balancing domain 'usr_domain' balance: Balanced domain 'usr_domain' # showfdmn usr_domain Id Date Created LogPgs Domain Name 2dcab512.000d1ed0 Fri May 7 14:22:26 1999 512 usr_domain Vol 512-Blks Free % Used Cmode Rblks Wblks Vol Name 1L 819200 459248 44% on 128 128 /dev/dsk8g 2 768281 433632 44% on 128 128 /dev/dsk9d ---------- ---------- ------ 1587481 892880 44% The files are now distributed more evenly between the two volumes. SEE ALSO
Commands: addvol(8), defragment(8), rmvol(8), showfdmn(8) balance(8)
All times are GMT -4. The time now is 10:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy