aboutsummaryrefslogtreecommitdiffstats
path: root/tools/list_protos_in_cap.sh
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-04-05 01:21:19 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-04-05 01:21:19 +0000
commitb8acdc8ee042ece5e8ad9adf629405006ee9fef1 (patch)
tree44bd476d6730f17771cf7dfcc8f44013dba2412d /tools/list_protos_in_cap.sh
parent49ac29b68242f581f96c699bd3e82efaa6bf87d2 (diff)
Set BIN_DIR to . by default. Use tr to replace colons with newlines.
svn path=/trunk/; revision=36467
Diffstat (limited to 'tools/list_protos_in_cap.sh')
-rwxr-xr-xtools/list_protos_in_cap.sh4
1 files changed, 2 insertions, 2 deletions
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"