r5733 - trunk/BOOK

bdubbs at linuxfromscratch.org bdubbs at linuxfromscratch.org
Fri Mar 17 10:42:51 PST 2006


Author: bdubbs
Date: 2006-03-17 11:42:50 -0700 (Fri, 17 Mar 2006)
New Revision: 5733

Modified:
   trunk/BOOK/obfuscate.sh
Log:
Fixed problem with obfuscate.sh finding strings too long

Modified: trunk/BOOK/obfuscate.sh
===================================================================
--- trunk/BOOK/obfuscate.sh	2006-03-17 16:31:47 UTC (rev 5732)
+++ trunk/BOOK/obfuscate.sh	2006-03-17 18:42:50 UTC (rev 5733)
@@ -25,7 +25,7 @@
 # Nothing like a backup plan!
 #cp "$1" "$1".bak
 
-for i in `grep -o '"mailto:.*@.*"' "$1" |sed -e 's|^"mailto:||' -e 's|"$||'`; do
+for i in `grep -o '"mailto:.*@.*"' "$1" |cut -d\" -f2|sed -e 's|^mailto:||' -e 's|"$||'`; do
   link=`echo $i | perl -pe 's/[^\n]/"\\\&#".ord($&)."\;"/ge'`
   plaintext=`echo $i | sed -e 's|@| AT |' -e 's|\.| D0T |g'`
   sed -i "s|mailto:$i|mailto:$link|" "$1"




More information about the blfs-book mailing list