NSHOW - Show Lines Where String is Not Found
Syntax
NSHOW |
search-string [ start-column [ end-column ] ] [ FIRST | LAST | NEXT | PREV | ALL ] [ PREFIX | SUFFIX | WORD | CHAR ] [ line-control-range ] [ color-selection-criteria ] [ TOP ] |
Operands
search-string |
The search string that identifies the lines whose exclusion status will remain unchanged. Lines where this string is not found will be unexcluded |
|
start-column |
Left column of a range (with end-column) within which the search-string value must be found. If no end-column operand, then the search-string operand must be found starting in start-col. |
|
end-column |
Right column of a range (with start-column) within which the search-string value must be found. |
|
FIRST |
Starts at the top of the data and searches ahead to find the first non-occurrence of search-string. |
|
LAST |
Starts at the bottom of the data and searches backward to find the last non-occurrence of search-string. |
|
NEXT |
Starts at the first position after the current cursor location and searches ahead to find the next non-occurrence of search-string. NEXT is the default. |
|
PREV |
Starts at the current cursor location and searches backward to find the previous non-occurrence of search-string. |
|
ALL |
Starts at the top of the data and searches ahead to find all non-occurrences of search-string. |
|
PREFIX |
Looks for search-string at the beginning of a word. |
|
WORD |
Looks for search-string when it is delimited on both sides by blanks or other non-alphanumeric characters. |
|
CHAR |
Locates search-string regardless of what precedes or follows it. |
|
SUFFIX |
Looks for search-string at the end of a word. |
|
line-control-range |
The range of lines which are to be processed by the command. The full syntax and allowable operands which make up a line control range are discussed in "Line Control Range Specification". |
|
color-selection-criteria |
A request for selection based on the highlight color of the search-string. The full syntax and allowable operands which make up a color-selection-criteria are discussed in "Color Selection Criteria Specification". |
|
TOP |
|
Abbreviations and Aliases
PREFIX can also be spelled as PRE or PFX
SUFFIX can also be spelled as SUF or SFX
WORDS can also be spelled as WORD
CHARS can also be spelled as CHAR
Description
You can use the NSHOW command to look for a search string, and unexclude the lines that do not contain the string from the display. Note that the normal selection options of X and NX are not allowed, since NSHOW operates only on excluded lines. See Working with Excluded Lines for more information.
To un-exclude the next excluded line that does not contain the letters ELSE without specifying any other qualifications:
On the Command line, type:
NSHOW ELSE
Press Enter. Since no other qualifications were specified, the letters ELSE can be:
- Uppercase or a mixture of uppercase and lowercase (assuming that CASE T is in effect)
- At the beginning of a word (prefix), the end of a word (suffix), or the entire word (word)
- Anywhere within the current boundaries.
To unexclude the next line that does not contains the letters ELSE, but only if the letters are uppercase:
On the Command line, type:
NSHOW C"ELSE"
and press Enter.
This type of exclusion is called a character string exclusion (note the C that precedes the search string) because it searches for the letters ELSE only if the letters are found in uppercase. However, since no other qualifications were specified, the exclusion occurs no matter where the letters are found on a non-excluded line, as outlined in the previous list.