I have a script to calculate the cumulative capacity in all the servers.  for i in `cat servers` do ssh user@$i "df -t xfs --total | grep total"; done &gt; capout.txt awk -vDT="Capacity" '         {sum2 += $2          sum3 += $3          sum4 += $4          sum5 += $5         } END     {GIGA=2^30           print DT,"\t" sum2/GIGA,"\t" sum3/GIGA,"\t" sum4/GIGA ,"\t"  sum3/sum2*100         }' capout.txt &gt;&gt; capacity.csv   Script works fine and i am getting the output as below.  Capacity   1047.43         439.4   608.032         41.9502   However i do not want to have the 3 trailing decimal points, I just need to restrict to one or two decimal points here.
My Command is below and its print Free CPU and Used CPU below format.  I want to restrict awk output to 2 decimal place.  grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} {free=($5)*100/($2+$3+$4+$5)} END {print "Used Cpu:",usage "%"} {print "Free Cpu:",free "%"}'   Output :   Free Cpu: 98.9588%  Used Cpu: 1.04125%   Desired output :  Free Cpu: 98.95%  Used Cpu: 1.04%
While we know that every finite set is compact, how to prove that every infinite subset of $\mathbf{R}$, the set of all real numbers, is also compact in the finite-complement topology (also called the co-finite topology)?   What is the situation in the case of an arbitrary infinite set $X$ with the finite-complement topology? Configure tab-switch hotkey in gnome-terminal I used to use Alt+number to switch between gnome-terminal tabs. In my recent 19.10 installation, this does not work. When I press Alt+1, instead of switching tab, the command line shows this: (arg: 1)   and if I press Alt+2, it becomes: (arg: 12)   I checked the options in gnome-terminal, it is set to use Alt+number to switch between tabs. I would like to know which application is hijacking the hotkey, and how to fix it. PS. I do NOT want to use Ctrl+PgUp/PgDn for this. Thanks. Accidentally hit "toggle full screen", How do I exit? I'm stuck in full screen in the node editor. Escape isn't working, and I have no menus and no idea how to leave except to quit Blender and reopen the program. Can Cycles use multiple UV layers? I'm trying to match Cycles to a Blender-Internal material setup and I didn't see a way for cycles to have an image reference more then one UV map.  Is it possible to have a node setup with 2 image textures, each using a different mesh UVLayer? Animated textures don't work in Blender viewport playback How long are the life phases of a dragon? My options to link large image into AI file My .psd file has a resolution of 6m x 3m @ 150 DPI. This makes it 35433px x 5906px in size. Photoshop CS6 saves the file as .tiff or .psb only. When I first import into Illustrator I get an error that the file is not readable but I have tried many options. Last one is not supported by AI.  So I'm puzzled... is there a way to link large images into Illustrator? Eigenvalues of symmetric matrices are real without (!) complex numbers Is there any proof of the fact that the eigenvalues of symmetric matrices (i.e. $A\in\mathbb{R}^{n\times n}$ with $A^t=A$) are real without the use of the concept of complex numbers? Who was/were the first Jedi? To show that $\sum a_nb_n$ is absolutely convergent Assume that $\sum a_n$ is convergent and $\sum b_n$ is absolutely convergent.To show that $\sum a_nb_n$ is  absolutely convergent  My try::Consider the sequence of partial sums of $\sum |a_nb_n|$  $S_n=|a_1b_1|+|a_2b_2|+......+|a_nb_n|$  Now $(a_1b_1+a_2b_2+......+a_nb_n)\leq ( (a_1^2+a_2^2+..+a_n^2))^\frac{1}{2}((b_1^2+b_2^2+..+b_n^2)^\frac{1}{2})$  How to proceed from here? Centering in tabularx and X columns How can I center the column when using X in tabularx environment like in this example?  \begin{tabularx}{\textwidth}{@{}lXXXXX@{}}  1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 \\    \end{tabularx} Add asterisk after labels in enumerate I would like to add an asterisk after certain labels in the enumerate environment. So for example  \documentclass{article} \begin{document}  \begin{enumerate}     \item Kuttel     \item* Daddeldu \end{enumerate}  \end{document}   but without the space between 2. und *. What is Chromatic Aberration? Is it a physical part of the lens, or just an optical illusion? How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version Getting polygon shapefile node coordinates and point order Convergence of $\sum \frac{a_n}{S_n ^{1 + \epsilon}}$ where $S_n = \sum_{i = 1} ^ n a_n$ How do I force Windows to check for updates? Powering NiChrome wire from battery I'm looking to power nichrome wire from battery. The problem I ran into is that desired length/width of the wire has very small resistance ~ 8 Ohm.  Several kinds of batteries I've tested have internal resistance much higher then that, which leads to wire staying cold and battery getting hot.  Is there any way to increase current drawn from the battery? Some kind of amplifier maybe?  Edit:    1.2V(rechargable) and 1.5V one, while not getting hot itself did not provide enough power to heat the wire. 3V did not provide enough power, even stacking 3 of them in series, only provided about 1V of voltage on the wire, and not enough amperage to heat the wire. 9V battery did provide enough amperage to heat the wire, but at the same time got very hot very quickly itself.   PS. I was wondering if  might work for this purpose? Note: I am posting a question from a former student of mine unable to post on his own for technical reasons.  Given an iid sample $x_1,\ldots,x_n$ from a Weibull distribution with pdf $$ f_k(x) = k x^{k-1} e^{-x^k} \quad x&gt;0 $$ is there a useful missing variable representation  $$f_k(x) = \int_\mathcal{Z} g_k(x,z)\,\text{d}z$$and hence an associated EM (expectation-maximisation) algorithm that could be used to find the MLE of $k$, instead of using straightforward numerical optimisation? find and echo file names only with pattern found I used this a lot, the improvement I try to achieve is to avoid echo file names that did not match in grep. Better way to do this?      for file in `find . -name "*.py"`; do echo $file; grep something $file; done