Monthly Archives: September 2013

Remove/replace all characters before and after a specific character & Deal with “postfix/smtpd too many errors after UNKNOWN from unknown”

Plenty of logs on an e-mail server like the one below: Sep  3 05:31:01 web postfix/smtpd[7858]: too many errors after UNKNOWN from unknown[] (These logs seem to be caused by botnets trying to send spam, or broken spam bots trying … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Linux – append text/string to filename

cd working directory ls -l | grep ^- | awk ‘{print $9}’ |  while read file; do  cp $file MyText$file; done or u can use mv instead of cp to rename all the files

Posted in Linux | Leave a comment