July 2005
Beginner
720 pages
18h 15m
English
The Workshop is designed to help you anticipate possible questions, review what you've learned, and begin learning how to put your knowledge into practice.
| 1: | How do you start the binary calculator in interactive mode? |
| 2: | How would you return all matches for the word Johnson from a text list called mylist.txt, sorted based on the second column, in reverse alphabetical order, and print the output? |
| A1: | Type bc at the command prompt and press Enter. |
| A2: | The command would be
grep Johnson mylist.txt | sort -k 2 -r | lpr |
Try writing a bc script to calculate the area of a circle, after prompting the user for the necessary numbers.
Use your favorite editor to create a text database containing your personal phone number list ...