[Info-vax] SEARCH ''

Hein RMS van den Heuvel heinvandenheuvel at gmail.com
Mon Jan 17 17:20:35 EST 2022


On Monday, January 17, 2022 at 3:52:13 PM UTC-5, 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.)

Well my friend. You appear to have missed the DCL 101 class.
To provide a double quote, double double up!

$ cre tmp.tmp
qwfqwe
werfqwerf
qwerf"erfwerf
werfqwerf
 Exit
$ search tmp.tmp """"  !   3 or 4 double quotes, as the final double quote is option (DCL 102)
qwerf"erfwerf




More information about the Info-vax mailing list