diff options
author | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-05 01:21:19 +0000 |
---|---|---|
committer | morriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-04-05 01:21:19 +0000 |
commit | 490142e44de8a5c133c50fca185b3de7771304e6 (patch) | |
tree | 44bd476d6730f17771cf7dfcc8f44013dba2412d /tools | |
parent | f5076d6ea75d38aa52ad17cefdf26335535d26c6 (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-x | tools/list_protos_in_cap.sh | 4 |
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" |