Shell

From Blackcannon wiki

How many hits:

cat access_log | grep horse.wmv | cut -f 1 -d ' ' | sort -u | wc -l

cat access_log | grep /trash/horse.wmv | wc -l


cron to find a file, move it somewhere harmless, and then delete it:

'* */1 * * * mv `find / | grep -i son | grep -i rose` /tmp/diediedie; rm -rf /tmp/diediedie/*