DOS Commands You Should Know: FIND
Recently, I stumbled upon a problem in my new mode choice and distribution code - I was setting unavailable modes to -9999 to ensure that there was no chance of the model to choose an unavailable mode. I found later that using that value was a bit extreme and I should be using something like -15 (and the difference causes wild logsum values).
After changing these values in 10 scripts, I wanted to ensure that ALL were changed so I didn't end up running them and finding that I had to wait another 15 minutes after finding an error (or worse, not immediately finding the error!).
So, I used the FIND command in DOS.
All of my distribution files begin with 25 and end with .S, so I used:
find "=-9999" 25*.S"