The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Converting Exponential values to decimals
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Converting Exponential values to decimals
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
07-01-2009
barrypitts
Registered User
Join Date: Jul 2009
Location: Dublin, Irelnad
Posts: 3
Quote:
Originally Posted by
Franklin52
Try this:
Code:
awk -F" |:" ' {$3=sprintf("%.3f", $3)} {$5=sprintf("%.3f", $5)} 1' file
That's perfect @Franklin52
Good job
Thanks very much @Franklin52 and @tyler_durden!!!
Barry
barrypitts
View Public Profile
Find all posts by barrypitts
Find barrypitts's past nominations received
Find barrypitts's present nominations given