From b8acdc8ee042ece5e8ad9adf629405006ee9fef1 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Tue, 5 Apr 2011 01:21:19 +0000 Subject: Set BIN_DIR to . by default. Use tr to replace colons with newlines. svn path=/trunk/; revision=36467 --- tools/list_protos_in_cap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/list_protos_in_cap.sh') diff --git a/tools/list_protos_in_cap.sh b/tools/list_protos_in_cap.sh index 76cabb7c21..5aff287f41 100755 --- a/tools/list_protos_in_cap.sh +++ b/tools/list_protos_in_cap.sh @@ -12,7 +12,7 @@ # /path/to/the/file.pcap eth ip sctp # Directory containing binaries. Default current directory. -BIN_DIR=_build +BIN_DIR=. # Tweak the following to your liking. Editcap must support "-E". TSHARK="$BIN_DIR/tshark" @@ -68,7 +68,7 @@ for CF in "$@" ; do printf "$CF " # Extract the protocol names. - $TSHARK -T fields -eframe.protocols -nr "$CF" 2>/dev/null | sed 's/:/\n/g' \ + $TSHARK -T fields -eframe.protocols -nr "$CF" 2>/dev/null | tr ':' '\n' \ | sort -u | tr '\n' ' ' printf "\n" -- cgit v1.2.3