Search code examples
windowscommand

Windows command equivalent of egrep


Can I run this in a Windows command prompt like I can run it in UNIX?

egrep -wi 'FRIENDS|FOES' *.sql

This command is intended to scan each SQL file for the whole keywords "Friends" and "Foes," ignoring case.


Solution

  • I think the findstr command is a fair enough substitute Windows command in place of Linux.