find_log_files_and_copy_to_a_folder
Find_log_files_and_copy_to_a_folder
Copies all apache log files to a new folder to analyse or run webalizer against etc.
#!/bin/bash for logfile in `ls /var/log/apache2/ | grep -v gz | grep -v .1` do
cp /var/log/apache2/$logfile /var/tmp/apachelog/
done
find_log_files_and_copy_to_a_folder.txt · Last modified: 2022/07/19 20:13 by 127.0.0.1