November 1998
Beginner
368 pages
7h 58m
English
UNIX even offers a handy calculator utility that lets you…er, um…calculate things. Just use bc, as shown in Code Listing 15.3.
To calculate with bc:
1. | bc |
2. | 6*5 |
3. |
Tip
You can tell bc to calculate expressions within a file with bcbcfile. (Of course, replace bcfile with the real file name.) Then, bc waits for more ...
Read now
Unlock full access