in reply to Re: converting tcpdump output
in thread converting tcpdump output
And redirecting the output to a file, then grepping it later. Is there a way of printing it along with the target?s/^\s+\S+\s+//; # remove initial address ind. #s/\s{2}.*//; # remove trailing dump <-- commented s/\s+//;
Basically, I extended the regex to capture a string followed by "=" and then string again.if (/^\S/) { while ($packet=~/(GET|POST|WWW-Authenticate|Authorization|[a-z]+=[a- +z]+).+/g) { ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localti +me(time);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: converting tcpdump output
by RnC (Sexton) on May 18, 2005 at 11:29 UTC |