Skip to Content
Shell Scripting Recipes: A Problem-Solution Approach, Second Edition
book

Shell Scripting Recipes: A Problem-Solution Approach, Second Edition

by Chris F. A. Johnson, Jayant Varma
October 2015
Intermediate to advanced content levelIntermediate to advanced
380 pages
7h 5m
English
Apress
Content preview from Shell Scripting Recipes: A Problem-Solution Approach, Second Edition

CHAPTER 5

image

Scripting by Numbers

Number crunching was once the domain of big mainframe computers hidden away in secure, air-conditioned rooms. Now, the computer on your desk (or even the one in your pocket) has more computing power than those old behemoths. The shell, with the help of external commands, can harness that power.

POSIX shells have arithmetic built in, but are limited to integers. Multiplication of decimal fractions can be done in the shell with the fpmul function, which appears in the math-funcs library described next. Other operations could also be coded with shell arithmetic, but they are more complicated, and external commands ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Distributed Computing in Java 9

Distributed Computing in Java 9

Raja Malleswara Rao Malleswara Rao Pattamsetti
Wicked Cool Shell Scripts, 2nd Edition

Wicked Cool Shell Scripts, 2nd Edition

Dave Taylor, Brandon Perry
Backup and Restore Practices for Sun Enterprise™ Servers

Backup and Restore Practices for Sun Enterprise™ Servers

Stan Stringfellow, Michael Barto, Miroslav Klivansky

Publisher Resources

ISBN: 9781484202203Purchase book