[Info-vax] SEARCH ''

hb end.of at inter.net
Mon Jan 17 17:40:32 EST 2022


On 1/17/22 21:52, Phillip Helbig (undress to reply) wrote:
> I had occasion to SEARCH for the string '' in a file.
> 
> Is there any way to do this?  (It gets expanded as an empty symbol; I
> don't know how to prevent that.)
> 
> Related question: SEARCH/STAT gives me the record count, not the number
> of times the string appears in the file, so they are not the same if it
> occurs more than once on one line.  Is there any way to get that
> information from SEARCH?  (A workaround is to replace the string with
> itself in EDT and look at the count displayed.)
> 

Maybe this helps:
$ cre x.txt
quote '
two quotes ''
  Exit
$
$ one:="'"
$ two=one+one
$ search x.txt &two
two quotes ''
$



More information about the Info-vax mailing list