This way you can get stats from your logs but this method is a little bit rudimentary as you are going to get visits from crawlers, bots,… that are not real visits. Parse your logs directly with awk.
find . -name ".svn" -type d -exec rm -rf {} ;
2 | |
3 |
1 | ps -ef | grep $$ | awk '{print $8}' | 4 |
1 | find . -iname -exec grep -n {} \; -print | 5 | | 6 |
How to change the owner/group of a file or directory recursively.
echo 'Number of unique visitors'
|
To change the group:
cat /var/log/apache/www.yoursite.com-access.log |awk '{print $1}' | sort | uniq | wc -l
|
If you want to know what files a rpm package copied to your system, you can find it out executing the following command:
|