I need a script where you in the top inform the period it must search in the log for. This period must always be two months. The first month is chosen as a specific month and year and the other month is set by default to the previous month, but it must be possible to change this to another month.
Hereafter it must for each line in the file [login to view URL] take the company name
Output listen must be made based on the company names, which are in the right side after : in Jul.txt. It must generate a list with the information below, whereafter the list must be send by mail to two different e-mail adresses.
Name Answered Total incomming calls
[login to view URL] Customer service 234 324
European-love Customer service 214 356
[login to view URL] Customer service 225 387
It must show answered and total incoming for both the first and the second month - it must also show the difference between the two months, where the difference is shown in red if it is positive and in black if it is positive. This must be shown both as the pure number and as a percentage. The oldest month must always be the basis, so if we have chosen January 2019 with 200 calls and June 2019 with 250 calls, then the difference is 50 calls (shown in black) and 25% (also shown in black). If we had then chosen June 2019 with 250 calls and August 2019 with 200 calls, then the difference is 50 calls (shown in red) and 20% (also shown in red).
[login to view URL] looks like this, it will continously change, thus the script must be able to automatically get the information from the file with the new changes.
/showname/442030342716 : [login to view URL] Customer service
/showname/442030342717 : European-love Customer service
/showname/442030342718 : [login to view URL] Customer service
/showname/442030342719 : [login to view URL] Customer service
/showname/442030342720 : [login to view URL] Customer service
/showname/442030342721 : [login to view URL] Customer service
/showname/442030342722 : [login to view URL] Customer service
/showname/442030342723 : [login to view URL] Customer service
/showname/442030342724 : [login to view URL] Customer service
Answered is found by searching like this
cat /var/log/messenger* | grep 'ubber = [login to view URL] Customer service' | wc -l
Total incomming is found by searching like this
cat /var/log/messenger* | grep 'ubber1 = [login to view URL] Customer service' | wc -l
Hi
I can write a shell script as per your requirement. My only doubt is the variation in [login to view URL] as you mentioned. WIll there be a change in format of [login to view URL] file ?
If interested pls contact me.
Thanks
$110 USD in 3 days
5.0 (21 reviews)
4.2
4.2
2 freelancers are bidding on average $155 USD for this job