Re: grep in cmd box
From: Bryan Dongray (btd_at_dongrays.com)
Date: 06/24/04
- Previous message: Tehiro: "Re: grep in cmd box"
- In reply to: Bryan Dongray: "Re: grep in cmd box"
- Next in thread: Ian Wilson: "Re: grep in cmd box"
- Reply: Ian Wilson: "Re: grep in cmd box"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 24 Jun 2004 10:18:24 GMT
Sorry...
Bryan Dongray wrote:
> With perl you can do grep, eg:
> netstat | perl -n -e 'if ($_ =~ /80/) {print $_;}'
> would probably work.
On a windows machine I tried this, but you need double quotes to
make it work on a command line - or put the script in a file
and call it from perl, eg "netstat | perl SCRIPT.PL"
where SCRIPT.PL would contain:
while ($l=<>) {
if ($l =~ /80/) {
print $l;
}
}
or similar.
- Previous message: Tehiro: "Re: grep in cmd box"
- In reply to: Bryan Dongray: "Re: grep in cmd box"
- Next in thread: Ian Wilson: "Re: grep in cmd box"
- Reply: Ian Wilson: "Re: grep in cmd box"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|