File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

retrieve float values from file

 
Rocky Salve
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help me to retrieve floating-point values from files using linux scripting for performing arithmetic operations

for ex; in file f1

12.22 22.33 12.32

using script those above value should be retrieved and added
12.22+22.33+12.32
and results stored in other file
 
Gerardo Tasistro
Ranch Hand
Posts: 362
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by "linux scripting"??

BASH, SH, Perl??? What do you start with and what do you want to end with? Describe your program.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if sed and bc is installed, use that:


[ April 15, 2006: Message edited by: Stefan Wagner ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic