Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\xampp\xampp\phpMyAdmin\lang\ drwxrwxrwx |
Viewing file: Select action/file-type: #!/bin/bash # $Id: remove_message.sh 5152 2003-11-18 15:20:45Z nijel $ # # 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' # if [ $# -ne 1 ] ; then echo "usage: remove_message.sh 'strMessageToRemove'" exit 1 fi for file in *.inc.php 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 " " |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |