debug notes
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 30 Oct 2012 03:56:21 +0000 (03:56 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 30 Oct 2012 03:56:21 +0000 (03:56 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@896 01035d8c-6547-0410-b346-abe4f91aad63

mini-asterisk-gui2/cgi-bin/setlinekey2.cgi

index 55efdb0b1bc5a536a49e7477e10069d60763b268..735fb236698ce03dc5e49f6308a9881d8fa22143 100755 (executable)
@@ -36,11 +36,8 @@ echo $this
 echo $that
 echo $key
 if [ -f $file ]; then
-#  sed -i  "s/\($this\)[a-z0-9\.]*\(.*$key.*\)/\1$that\2/"  $file
-#rhs=`cat $file | grep -oe "$this.*$key" | grep -oe "$this[a-z0-9\.]*" | sed -n "s/$this//p"`
-#cat $file | sed "s/$rhs/$that/"
-# testversion:
-perl -i -pe "s/($this)[a-z0-9\.]*(.*$key.*)/$this$that\$2/" $file
+  # to debug remove -i (write results to file), it will then just print results
+  perl -i -pe "s/($this)[a-z0-9\.]*(.*$key.*)/$this$that\$2/" $file
 else
   echo "$file does not exist"
 fi