Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 36462: / /trunk/tools/: Makefile.am
From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Mon, 04 Apr 2011 21:23:27 -0400
On 04/04/2011 06:09 PM, Stephen Fisher wrote:
On Mon, Apr 04, 2011 at 07:10:39PM +0000, morriss@xxxxxxxxxxxxx wrote:

  A little script to extract the protocols used in given capture files.

  (Just so I don't have to remember how to do it again.)

Great idea.  It says at the top the default directory that contains
binaries (BIN_DIR) is the current directory, but its assigned to
"_build" instead of "." -- shouldn't we change it to "." ? :)

Doh!  I meant to change that before submitting.

The sed part doesn't seem to be working, as I get the colons replaced
with an 'n':

tools/list_protos_in_cap.sh ~/captures/*
/home/sfisher/captures/1second.pcap ethnipntcpnhttpndata

Instead of a new line.  According to the sed man page (this is FreeBSD),
\n is a valid way to match.

I've had issues with sed and newlines in the past. Hopefully 'tr' works better for you (rev 36467).