Translation update done using Pootle.
[phpmyadmin-themes.git] / lang / remove_message.sh
blob7dab14a90d1cb21ce0effa6a1b10bbb7ad3786b2
1 #!/bin/bash
2 # $Id$
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'"
12 exit 1
15 for file in *.inc.php
17 echo "lines before:" `wc -l $file`
18 grep -v "$1 " ${file} > ${file}.new
19 rm $file
20 mv ${file}.new $file
21 echo " lines after:" `wc -l $file`
22 done
23 echo " "