4 # Shell script that removes a message from all message files (Lem9)
5 # it checks for the message, followed by a space
7 # Example: remove_message.sh 'strMessageToRemove'
10 if [ $# -ne 1 ] ; then
11 echo "usage: remove_message.sh 'strMessageToRemove'"
17 echo "lines before:" `wc -l $file`
18 grep -v "$1 " ${file} > ${file}.new
21 echo " lines after:" `wc -l $file`