EanderAlx.org

Linux, Virtualization and whatever I find interesting ...

User Tools


Site Tools


bashscr:calculate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:bashscr:calculate [05.10.2010 14:13] eanderalxbashscr:calculate [23.03.2013 18:24] (current) – Page moved from blog:bashscr:calculate to bashscr:calculate eanderalx
Line 36: Line 36:
 </code> </code>
   * The leading zero is lost   * The leading zero is lost
 +  * You can search and replace using "sed"
 +<code bash>
 +echo "scale = 3; 2.5 / 3.1 " | bc -l | sed -r 's/^\./0./g'
 +0.806
 +</code>
bashscr/calculate.txt · Last modified: 23.03.2013 18:24 by eanderalx