Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-11-2006, 03:41 AM   #16
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 64

bc (the part which is doing the calculation) doesn't recognise this notation. Try this. change the line with bc in it to this:
echo "$first_number + $second_number" | sed 's/e/*10^/g' |bc -l >
Old 11-11-2006, 11:37 AM   #17
Registered: Jul 2006
Posts: 102

Original Poster
Rep: Reputation: 15
fantastic - whos the man? you're the man..
owe you a lot of time!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
print a text file with long lines and line number added powah Linux - General 2 05-26-2006 02:02 PM
Read in an Octal number from a text file using C++ pjordan Programming 2 11-18-2004 03:03 PM
replace a string/number in a text file jpan Linux - General 3 10-22-2004 09:33 PM
"how do I extract a number from a text file using shell command?" sdandeker Linux - Networking 3 02-12-2004 08:54 AM
bash script to download a number of things linksocc Linux - Software 3 12-10-2003 12:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration