From 4f30b9042a735aa24f78430e2063a5cbcc3ebe08 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 1 Jul 2001 15:10:23 +0000 Subject: [PATCH] new script --- lang/remove_message.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 lang/remove_message.sh diff --git a/lang/remove_message.sh b/lang/remove_message.sh new file mode 100755 index 000000000..50fc93fc9 --- /dev/null +++ b/lang/remove_message.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Shell script that removes a message from all message files (Lem9) +# it checks for the message, followed by a space +# +# Example: remove_message.sh 'strMessageToRemove' +# +for file in *.inc.php3 +do + echo "lines before:" `wc -l $file` + grep -v "$1 " ${file} > ${file}.new + rm $file + mv ${file}.new $file + echo " lines after:" `wc -l $file` +done +echo " "