I don't quite understand how that works (below). Maybe I'm not looking at it in the right way.
FFIND numbers lines starting at 1. The "^r^n^r^n" is in there, but the first half of it is at the end of line 3 and the second half is on line 4. I don't know why it's found at all and why FFIND reports line 4 (and I'm not complaining about either behavior).
How strip all non-numeric chars from the ffind result - assuming you do:
set nLocation=%@execstr[ffind /k /m /l /t"^r^n^r^n" file1.txt]
nLocation would eq "[4]" .....
Also @vefatica - we are a bit of a small world. My favorite barber is from upstate NY. not sure what town or how close to Syrcause NY he grew up at.... I'll reach out to him and let you know....
Did you mean Binghamton? Not really. It's about 70 miles south of me. I go to a restaurant there (Cortese's) once in a while and always have trouble finding the place.
Did you mean Binghamton? Not really. It's about 70 miles south of me. I go to a restaurant there (Cortese's) once in a while and always have trouble finding the place.
Did you mean Binghamton? Not really. It's about 70 miles south of me. I go to a restaurant there (Cortese's) once in a while and always have trouble finding the place.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.