Been trying for a while to get this script fully working I think I'm nearly there. Ok so I basically need the script to show 3 things, email address - Browser type -  Time logged in. EMAILS='/home/user/emaillist.txt'MAIL=$EMAILSwhile read MAIL;dogrep -f $EMAILS /var/log/apache2/ssl_access.log>>/home/user/test.txtdone < $EMAILSI need some way of first using the todays date in here so it only searches the apache logs for that data. I was thinking about using the linux date  +[%d/%b/%Y command in the script as this will match the correct date formate. The other aspect is that I only need the output to show the user's email address | Browser type and date from apache nothing else. HELP please UPDATEManaged to play around with the script and got it to this stage where it works fine I just need to work out how to add browser data into the text file?x=$(date +%d/%b/%Y)y=$(date +%d%b%Y)filename=emaillist.txt while read filenamedo         if COUNT=$(grep $filename /var/log/apache2/ssl_access.log |grep -c $x)         then          echo $filename:$COUNT>>/home/user/logs/usage$y.txt          fidone < emaillist.txt
Apache log analytic's
apache;looking for a script;server side scripting;filenames;apache log files
If you putgrep $filename /var/log/apache2/ssl_access.log |grep $x | awk -F\ '{print $6}' | sort -u >> /home/user/logs/usage$y.txt before the fi that should put the browser information into the text file (and remove duplicate lines where they are the same) after the line with the count on it.