beautypg.com

How to search for a string in a file, Advanced commands, Next clerk command – Gasboy CFN III Manager Manual V3.6 User Manual

Page 224: How to search for a string in a file -12, Advanced commands -12, Next clerk command -12, Refer to

background image

Advanced Command Files

Advanced Commands

Page 20-12 MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010

How to Search for a String in a File

Use the disk-based program FIND to find and print all occurrences of a specified string in one
or more files. The format of FIND is:

FIND[;[A][I]] pattern file1 [file2] . . .

[P:]* TYPE TEST5.CMD

* test for number of island card
readers down
PRINT DIAG;>SCRATCH 3
FIND;>NULL “went down” SCRATCH
ECHO Island readers down = %E
DEL SCRATCH
[P:]*

FIND prints all lines that include one or more occurrences of the specified pattern. If pattern
contains spaces, it must be enclosed in double quote marks (“). With A option, FIND prints the
name of the file and the line number of each occurrence of the pattern.

FIND maintains a counter with how many times the pattern was found. The value of this
counter (up to 9999) is returned as the error code from FIND. The %E variable contains the
error code from the last command executed. If a line has more than one occurrence of the
pattern on it, the line will be printed only once, but the counter will reflect the correct number
of total occurrences. With the I option, the counter will give the total number of lines the
pattern was found on, rather than the total number of occurrences of the pattern.

Advanced Commands

NEXT CLERK Command

The NEXT CLERK or NE CL command allows the disk journal to keep separate shifts for
each console. Separate shift numbers (1-99) and separate shift serial numbers (1-999) can be
kept for each console.

NEXT CLERK (NE CL)

[P:]* NEXT CLERK

Console number? 1

[P:]*

Before the command can be used, set the Unique shift #’s for every console parameter on page
9 of SYS_PAR to Yes. If this SYS_PAR parameter is set to No, when you try to run the
command, a Command failed message appears.

When the NEXT CLERK command is run, there is no screen display, but the change in shift
number for the designated console is noted in the disk journal.

If non-fuel sales have not been paid off on the designated console, the command will terminate
with a Transaction(s) in progress message.

This manual is related to the following products: