new script
This commit is contained in:
16
lang/remove_message.sh
Executable file
16
lang/remove_message.sh
Executable file
@@ -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 " "
|
Reference in New Issue
Block a user