On 3/25/2015 7:10 PM, Steven D'Aprano wrote:
Does Windows shell have grep? How about Powershell?
No. I just use Idle's grep (Find in Files). And I generally would even if Command Prompt did have grep. Idle's has the nice feature that output goes in an Output Window, with each line found prefaced with filename and line number. One can then right click on a line and open the file at that line in an Idle editor. One can also save the list to a file if so inclined.
-- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list