Comp sci: Windows cmd: findstr (Windows version of grep)

Self-tutoring about computer science: the tutor mentions a great utility in Windows cmd.

findstr the_string text_file.txt

will print each line from text_file.txt that contains the_string.

findstr /n the_string text_file.txt

will precede each printed line by its number.

Source:

itechtics.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply