The OpenVMS User's Guide, Second Edition

Chapter 6: More Work with Files

The brain is, in fact, an associating machine. To recall a name, date, or fact, what the brain needs is a cue, a clue.

Robert L. Montgomery, Memory Made Easy, 1979

Yea, from the table of my memory I'll wipe away all trivial fond records.

Shakespeare, Hamlet, Act I, Scene 5

Overview

Chapter 2, "A Beginner's Guide to OpenVMS File Management," introduced you to some basics of file handling with OpenVMS. This chapter extends your understanding of working with files. In this chapter, you will

  • Learn how to search files

  • Explore uses of the Sort and Merge utilities

  • Explore another way to create files

  • Begin using logical names

  • Learn how to print files

  • Learn how to set up local help libraries

6.1 Searching Files

The SEARCH command scans one or more files for a specified string or strings and lists all occurrences of the lines containing the string or strings. This command is useful in constructing special-purpose glossaries, for example. Even though a text may have a mixture of ideas, you can cull from it all lines pertaining to a selected set of keywords.

The SEARCH command has the following syntax:

<b class="bold">search</b> <span class="emphasis"><ifilespec</i></span>[, ] <span class="emphasis"><isearch-string</i></span>[, ]

The file specification is the name of at least one file that should be searched. If more than one file should be searched, list the names, separating them with commas. You may include wildcard characters in the file specification.

The search string is the string of characters to be...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Waveplates and Retardation Plates
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.