Re: grep in cmd box
From: Bryan Dongray (btd_at_dongrays.com)
Date: 06/24/04
- Next message: Tehiro: "Re: grep in cmd box"
- Previous message: Barry Margolin: "Re: grep in cmd box"
- In reply to: Tehiro: "grep in cmd box"
- Next in thread: Bryan Dongray: "Re: grep in cmd box"
- Reply: Bryan Dongray: "Re: grep in cmd box"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Jun 2004 03:41:57 GMT
Tehiro wrote:
> HOw to make my cmd box in Windows 2000 or XP to recognise grep in its commands?
> For instance to be able to issue such a command: netstat |grep 80.
> Right now, it gives me "grep' is not recognized as an internal or external command".
There are probably places to download a "grep" program.
If not, you can always download (if you haven't done so already) perl.
With perl you can do grep, eg:
netstat | perl -n -e 'if ($_ =~ /80/) {print $_;}'
would probably work.
There's so much more you can do with perl though!
- Next message: Tehiro: "Re: grep in cmd box"
- Previous message: Barry Margolin: "Re: grep in cmd box"
- In reply to: Tehiro: "grep in cmd box"
- Next in thread: Bryan Dongray: "Re: grep in cmd box"
- Reply: Bryan Dongray: "Re: grep in cmd box"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|