Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/phpmyadmin/lang/ drwxr-xr-x |
Viewing file: Select action/file-type: #!/bin/bash # $Id$ # # 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. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0203 ]-- |