Files
phpmyadmin/lang/remove_message.sh
Loïc Chapeaux e4362f5eb8 Codding standards
2001-12-28 15:10:38 +00:00

17 lines
383 B
Bash
Executable File

#!/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 " "