bashscr:calculate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
blog:bashscr:calculate [05.10.2010 14:13] – eanderalx | blog:bashscr:calculate [05.10.2010 14:16] – eanderalx | ||
---|---|---|---|
Line 36: | Line 36: | ||
</ | </ | ||
* The leading zero is lost | * The leading zero is lost | ||
+ | * You can search and replace using " | ||
+ | <code bash> | ||
+ | echo "scale = 3; 2.5 / 3.1 " | bc -l | sed -r ' | ||
+ | 0.806 | ||
+ | </ |
bashscr/calculate.txt · Last modified: 23.03.2013 18:24 by eanderalx