findstrThis is one of my favorite scripts, both
for its simplicity and its usefulness. In a nutshell, it just uses
find and grep to search for a string. It uses the "-i"
flag for grep to do a case insensitive search. The script is
simplified by not accepting a path as input. It simply starts its search
from the current working directory. The example, below, searches for "any
key" starting in the current directory.
jaye@tara: ~/bin>
findstr any key
./tests/testkey
jaye@tara: ~/bin> |
In this case, it found the line echo "HIT ANY KEY TO CONTINUE: \c"
in the file testkey.
|