LFIND 1.2 (c) Copyright London Computing, 1987, 1988, 1990
Usage is: LFIND [{-C[inlist] | infile ...}] [/condition] [-ooutfile]


Finds data in one or more files based on the contents of the file.


Where:
infile ...-- is a list of files to search, wildards permitted  -OR-
-C        -- indicates that the file list is to be read from console(STDIN)
-Cinlist  -- indicates the the file list is to be read from file inlist
None of the above indicates that the file is to be read from the console(STDIN)
-ooutfile -- specifies the name of an output file.  STDOUT is default.
-X        -- exclude matching lines instead of including matching lines.
-N        -- prefix lines with line numbers
-F        -- output name of input file before first matching line
condition -- is the conditions to search for:
condition must start with a /.  condition Characters are:
	%[n]C[+m]-- Search n characters of inputline starting at pos m.
	            n defaults to entire line, m defaults to pos 0.
	%n       -- Is n spaces.  n must be followed by a blank.
	%G -- Is >, %L  -- Is <, %B -- Is |, %N is new line, %T is Tab.
	%Q -- Is double quote (").	%Xnn     -- Is character Hex nn.
condition is : [not] {text | %nC+m} {operator} {text | %nC+m} [{AND | OR} ...]
Operators are: LT,LE,EQ,GE,GT,IN {IN is inclusion; a IN ab is true}
               LTU,LEU,EQU,GEU,GTU,INU same as above, but ignore case
Use % before +,le,lt,eq,ne,gt,ge,in,and,or,not for to resolve ambiguities

Press RETURN to continue ...All other characters prints as themselves.  Max Linesize is 4096 bytes.
Returns 0--found, 1-- Not Found, 2--Help, 4--Error
Do you want to see examples (Y or N) ? Example 1: Scan file abc.dat for lines with * in col 1 and containing ABC
	LFIND abc.dat /%1c eq * and ABC in %c

Example 2: Scan redirected input file for lines containing .DBF or .NTX
	LFIND /.DBF in %c or .NTX in %c <abc.dat 

Example 3: Same as above, ignore case send output to find XYZ.OUT
	LFIND -oxyz.out /.dbf inu %c or .ntx inu %c <abc.dat

Example 4: Scan all .BAT files or .PRG files for > or < signs
	LFIND *.BAT *.PRG /%g in %c or %l in %c

Example 5: Scan all files in list fil.lst not starting with $
	LFIND -cfil.lst /%1c ne $
	-OR-
	LFIND -c /%1c ne $ <cfil.lst
