Hello, thank you very much for your assistance, please help withwriting a shell script named “astats.sh”. The script reports andprints selected information gleaned from the Apache web serverlogs. Again, I will describe the action of this shell script byfirst showing the help information:
Usage: ./astats.sh []
Reports selected information aboutApache. If no filename is given, we use/home/anyuser/CYBR/HW/access_log
Request:
-h Print this long message
IPs – print a sorted list of allunique IP addresses that have accessed the server, and a totalcount at the end
Users – print all unique user nameswhose web pages have been accessed, and a total count
OR
OR