aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-05 01:21:19 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-05 01:21:19 +0000
commit490142e44de8a5c133c50fca185b3de7771304e6 (patch)
tree44bd476d6730f17771cf7dfcc8f44013dba2412d /tools
parentf5076d6ea75d38aa52ad17cefdf26335535d26c6 (diff)
Set BIN_DIR to . by default. Use tr to replace colons with newlines.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36467 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-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"