grep -r . "some random debug message"
(searches for the passage recursively in all files from the directory it was executed, the main reason I like developing in linux more than windows)
It is not a drop-in replacement for ack. e.g. there are some basic usages it does not support -- iirc counts (ag -c pattern).
grep -rs
or (more commonly for me):- grep -rsi
(The -s supresses errors about unreadable files that may clutter the output. -i for case insensitivity.)findstr /SPINC:"some random debug message" *
Will do the same. FINDSTR is no grep, but for very simple cases like this is just fine
SPINC and SPIMC are my favorite options...