Help with change significant figure to normal figure command
Hi,
Below is my input file:
Long list of significant figure
Desired output file:
Do anybody know how to change significant figure to normal figure through any command line language?
Thanks for any advice.
Last edited by perl_beginner; 12-17-2013 at 05:17 AM..
I just try with your awk command.
It return something as below:
The output result is different from what I expected.
Apart from that, is it possible your command work for something like "1.757E-100" and return "7.51E-3" as "0.00751" instead of "0.00751000".
Really thanks and sorry for troubling you.
---------- Post updated at 09:04 AM ---------- Previous update was at 08:57 AM ----------
Hi Klashxx,
I just try your python script with the data set.
But it return the following error message:
Is there something wrong with my python program?
Thanks for advice.
What you show there is the "%.8g" behaviour. It will not fill the field length with 0 as "%f" does, but it will resort to e- notation if the exponent ist less than -4. I'm afraid that can't be modified; you may need to do string manipulations, then. Or use sth. like python etc..
Hello,
Using Bash on Mac OS X 10.7.5 (Lion). I downloaded a GrowlSafari plugin for Webkit from its GitHub page GitHub - uasi/growl-safari-bridge: GrowlSafariBridge enables arbitrary javascript (including Safari Extensions) to notify via Growl.. In the description it says that after installing for... (0 Replies)
I'm putting together a shell script while I'm learning UNIX -- just for myself. It's a little script that simply takes some vendor names and writes them to a file. So far I'm at the stage where the user enters the name of the file and places it in a folder called vendorlists:
* ) touch... (5 Replies)
Ok so i'm relatively new at UNIX and I'm trying to figure out how to make a log dump command.
My situation is a bit odd in that I'm always looking at customers boxes and as such I can't really do much to them. So everything I do in UNIX pretty much has to be a command I can type in by hand. I... (4 Replies)
I have two machines, each with a virtual interface, with the following configurations:
Machine1:
eth2 Link encap:Ethernet HWaddr 00:09:6B:19:E5:05
inet addr:172.16.0.201 Bcast:172.16.0.255 Mask:255.255.255.0
eth2:0 Link encap:Ethernet HWaddr 00:09:6B:19:E5:05
... (0 Replies)
Hi,
I have inherited a server at work that has one IP and two virtual IP's. It is live and I want to figure out what each IP is being used for. I thought of NETSTAT but I cannot figure out how to get it to list what each IP is listening for. ANy advice? (8 Replies)
Hi, I need a little help here. I am exporting user info from a PSQL database and everything is working with the exception of this:
10029008:dsAuthMethodStandard\:dsAuthClearText:classword:10029008:2004:10029008:10029008:/home/student/1002/90/08:10029008
It is putting a colon right before the... (1 Reply)
I am having problems scripting in UNIX. I am currently attending school and for the first time I am being introduced to scripting. My problem is I am supposed to enhance the spell_check by adding a third optional argument. The third argument is to specify a list of words to be added to the... (1 Reply)