Personal #terminal#bash#windows 1 min

equivalent of the "grep" command in windows: "find"

Translation of the original in Catalan. Read it in: CatalàCastellano

If I had known you before... I've spent half my life using grep on linux and until today I hadn't discovered that in windows there is find, which does the same thing. At last I can now do:

 # netstat -an | grep ESTABLISHED<br>C:\>netstat -an | find "ESTABLISHED"

5 comments

Comments from the old blog, as they were written. Comments are closed.

  1. Drk

    Bé, també pots fer servir el GREP for Windows, que va molt bé...

  2. —

    [1]

    El dolent del grep per windows és que no el tindré en qualsevol ordinador amb windows que toqui, per exemple, a casa d'un client o resolent una incidència per telèfon. D'aquí que m'hagi agradat tan descobrir aquesta comanda.

  3. jordi

    També tens el paquet unixutils.zip q et permet baixar-te tot un seguit d'heines de unix per windows

  4. Toni

    También puedes usar:

    C:\>netstat -an | findstr ESTABLISHED

    Saludos.

  5. Roge

    Molt bo.