Firsh header macros
[anna.git] / example / diameter / launcher / resources / pcap2diameterHex.sh
index 45dd820..fc217cd 100755 (executable)
@@ -31,23 +31,13 @@ _exit () {
   echo
 
   # Cleanup
-  #rm -rf $tmpdir
+  rm -rf $tmpdir
 
   rc=1
   [ -n "$2" ] && rc=$2
   exit $rc
 }
 
-# $1: string; $2: substring
-get_str_pos() {
-  local result=-1
-  local str=$1
-  local substr="${1%%$2*}"
-  local pos=${#substr}
-  local size=${#str}
-  [ $size -ne $pos ] && result=$pos
-  echo $result
-}
 
 #############
 # EXECUTION #