Hello Thank Much Assistance Please Help Writing Shell Script Named Astatssh Script Report Q37257867

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.