This section presents a few interesting details of the program that might otherwise escape attention. The purpose of this section is to extract some interesting program fragments and show how they solve a particular problem. Our first fragment is from the script, whose job it is to standardize the index entries before they are sorted. This program takes as its input a record consisting of two tab-separated fields: the index entry and its page number. A colon is used as part of the syntax for indicating the parts of an index entry. Because the program uses a colon as a special character, we must provide a way to pass a literal colon through the program. To do this, we allow the indexer to specify two consecutive colons in the input. However, we can't simply convert the sequence to a literal colon because the rest of the program modules called by read three colon-separated fields. The solution is to convert the colon to its octal value using the "\\72" represents the octal value of a colon. (You can find this value by scanning a table of hexadecimal and octal equivalents in the file .) In the last program module, we use to convert the octal value back to a colon. Here's the code from The first thing you notice is that we make this substitution for each of the three fields separately, instead of having
Read the Whole Article

Products & Services
Math Calculation Software
Math calculation software is used to perform mathematical calculations. These programs provide general core calculations as well as graphical analysis that can be used in science, engineering and technology.
Rotary Coded DIP Switches
Rotary coded dual in-line package (DIP) switches are activated by a rotating shaft and have several stop positions. They use the DIP form factor so that arrays of multiple switches can be incorporated into a single package.
Pushwheel Switches
Pushwheel switches are rotary switches that operate using a rolling wheel. They are also known as thumbwheel switches.
Search Engine Software
Search engine software is used to index information on a website or intranet. Algorithms help users search a large corpus of data by keyword or a set of terms. The results are then presented in a prioritized list.
Power or Line Conditioners
Power or line conditioners regulate, filter, and suppress noise in AC power for sensitive computer and other solid state equipment.

Product Announcements
Raytheon ELCAN Optical Technologies - Cost-effective Surface Finishing Technologies!
ELCAN Optical Technologies: reflective optical surfaces with <30 nm PV accuracies & micro-roughness <0.5nm rms, perfect to within λ/30. Available as predictable, repeatable,... (read more)
Raytheon ELCAN Optical Technologies - REVOLUTIONARY SOLUTION SEEKS CHALLENGING PROBLEM
ELCAN Optical Technologies: reflective optical surfaces with <30 nm PV accuracies & micro-roughness <0.5nm rms, perfect to within λ/30. Available as predictable, repeatable,... (read more)
Airotronics - TG Series Relay Timers
TG Series Timers with Relay Output Provide direct control of motors, heaters, fans, compressors, pumps, lights, solenoids, alarms and many more. Labor-saving, easy installation reduces assembly time... (read more)
 

Topics of Interest

The process of generating an index usually involves three steps: Code the index entries in the document. Format the document, producing index entries with page numbers. Process the index entries to...

This section summarizes how awk processes input records and describes the various syntactic elements that make up an awk program. Each line of input is split into fields. By default, the field...

7.4 IPv6 Addressing Mechanisms Sections 7.4 through Section 7.6 cover the IPv6 addressing scheme is some detail. The previous subsections introduced some basic concepts on addressing, and these...

4.4 Programs as functions A computer program is a set of instructions (a recipe) for carrying out a computation. When a program is evaluated with appropriate inputs the computation is performed and...

8.1 OVERVIEW There are four systems of arithmetic which are often used in digital circuits. These systems are: Decimal: The decimal system has a base (or radix) of 10. Therefore it uses ten...

Product Announcements
Visualization Sciences Group, Inc. (VSG)
Infolytica Corporation
CST - Computer Simulation Technology