Unix & Linux
Unix & Linux Meta
to customize your list.
more stack exchange communities
Start here for a quick overview of the site
Detailed answers to any questions you might have
Discuss the workings and policies of this site
Unix & Linux
Doing simple math on the command line using bash functions: $1 divided by $2 (using bc perhaps)
Sometimes I need to divide one number by another. It would be great if I could just define a bash function for this. So far, I am forced to use expressions like echo 'scale=25;65320/670' | bc but ...
Jan 31 '12 at 14:12
newest bashrc arithmetic questions feed
Hot Network Questions
Why do Indian citizens need many visas?
How to take a cold shower
Who performed the bris of Abraham?
Should you reveal to the participants where they 'went wrong' during usability tests?
Kayaks vs canadians from a beginner's perspective
Automatic calling system: "Press star" or "Press asterisk"?
How does a SIM card prevent cloning?
Why are dragons considered magical in A Song of Ice and Fire?
Why are gels used for digital photography?
Implement "Upgrades" Feature for Game
Bash shortcut to get parent of last used parameter
What are the possible causes of a faculty position not being filled?
What's a novel way to say "all errors are my own"?
Choosing between .bashrc, .profile, .bash_profile, etc
Client Side Coding: How to prevent malicious use?
How did they take photos of Jupiter?
How does Sneak Attack damage apply to Vampiric Touch?
Changing the behavior of $$ but not of $
How to add text around/below a node using tikz-qtree?
Why does Bitcoin store all transaction inputs and outputs, instead of just an "account/balance" ledger?
Why did Griphook stop working at Gringotts Bank
Is there a way to get "top" to run exactly once and exit?
Is there a way to hop up onto a parallel curb?
Produce unique number given two integers
more hot questions
Life / Arts
Culture / Recreation
TeX - LaTeX
Unix & Linux
Ask Different (Apple)
Geographic Information Systems
Science Fiction & Fantasy
Seasoned Advice (cooking)
Personal Finance & Money
English Language & Usage
Mi Yodeya (Judaism)
Cross Validated (stats)
Theoretical Computer Science
Meta Stack Exchange
Stack Overflow Careers
site design / logo © 2014 stack exchange inc; user contributions licensed under
cc by-sa 3.0
Linux is a registered trademark of Linus Torvalds. UNIX is a registered trademark of The Open Group.
This site is not affiliated with Linus Torvalds or The Open Group in any way.