0

I have logs files, access.log-*, and I need exclude the 'TCP-DENY' (or include only the 'TCP-MISS').

How I parsing, like grep command on linux, access.log file on windows?

On linux it is work fine. I need doing it on windows script (bash).

Thanks

  • 1
    Get out of CMD, and switch over to powershell. Powerhsell has lots of functionality for filtering text. http://searchwindowsserver.techtarget.com/feature/Filtering-output-from-Windows-PowerShell – Zoredache Sep 12 '13 at 17:25

1 Answers1

1

I agree with Zoredache, PowerShell is the way to go. However I think the command you want is

findstr <string>

Please note findstr is case sensitive.

TheFiddlerWins
  • 2,999
  • 1
  • 15
  • 22