Part IV: Looking Inside Files

It's amazing how much there is to know about files without ever opening them. But all the cataloging and organizing and finding of files is simply a prelude to using them-and that usually means dealing with what's inside.

Showing What's in a File talks about various ways to dump the entire contents of a file to your screen-all at once, or in manageable pieces.

Regular Expressions (Pattern Matching) describes the essential prelude to any more precise look at just parts of a file-the regular expressions that allow you to match textual patterns rather than fixed words or phrases.

Searching Through Files describes the grep family of programs, which use regular expressions to find and print individual matching lines from a file or files. grep is the program that people ignorant of UNIX like to pick on for its seemingly obscure name, yet it is one of the handiest tools UNIX provides.

Comparing Files tells how to compare two files that might have a great deal in common, how to isolate the differences, and how to put Humpty back together again when versions have become skewed with multiple incompatible edits.

Spell Checking, Word Counting, and Textual Analysis describes some specialized ways to look at files-spell checking, word counting, and various kinds of simple proofreading.

- TOR

Showing What's in a File
Regular Expressions (Pattern Matching)
Searching Through Files
Comparing Files
Spell Checking, Word Counting, and Textual Analysis