The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Unix Arithmatic operation issue , datatype issue
.
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
:
Unix Arithmatic operation issue , datatype issue
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
02-13-2008
otheus
Moderator ala Mode
Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,889
Use awk to prepare the file for bc.
{ awk '{ print $0 " +\\" }' bigfile; echo 0; } | bc
Assuming bc is using the arbitrary precision library, you shouldn't have a problem here.
otheus
View Public Profile
Visit otheus's homepage!
Find all posts by otheus
Find otheus's past nominations received
Find otheus's present nominations given