Differences between version 43 and predecessor to the previous major change of BashNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 43 | Last edited on Wednesday, December 6, 2006 1:29:24 am | by BenStaz | Revert |
Older page: | version 42 | Last edited on Thursday, August 3, 2006 9:51:33 pm | by AristotlePagaltzis | Revert |
@@ -34,8 +34,12 @@
<verbatim>
xset b 0
</verbatim>
+
+If you use gnome, then that annoying beeping can be disabled by going to System > Preferences > Sound
+
+Find the "System Beep" tab and uncheck "Enable System Beep".
!! How do I do arithmetic in bash?
Surround the expression with $(( )), eg:
@@ -344,11 +348,20 @@
END_SCRIPT
</verbatim>
—AristotlePagaltzis
+
+!How can I do Division in bash using floating point numbers?
+
+Use ''bc''
+
+*echo "scale=10;5/4" | bc"
+
+will result in : 1.2500000000
+The value of the scale function is the number of digits after the decimal point in the expression. (In this case 10)
!! See also
* CommonErrors, under "Your shell hangs"
* BashOneLiners
* SpacesInPathNames
* PortabilityNotes