In the For loop lab section

The loop is not working properly. It takes only one Finance log file and there are again 3 log files. But after Finance it will stop.

echo -e " Log name \t GET \t POST \t DELETE "
echo -e “------------------------------------------------------------”

for app in $(cat /tmp/assets/apps.txt)
do
get_requests=$(cat /var/log/apps/${app}_app.log | grep “GET” | wc -l)
post_requests=$(cat /var/log/apps/${app}_app.log | grep “POST” | wc -l)
delete_requests=$(cat /var/log/apps/${app}_app.log | grep “DELETE” | wc -l)
echo -e " ${app} \t ${get_requests} \t ${post_requests} \t ${delete_requests}"

done

What is in /tmp/assets/apps.txt ?

bob@caleston-lp10:/tmp/assets$ cat apps.txt
finance
marketing
partners
pay
bob@caleston-lp10:/tmp/assets$

and I am getting the output below

bob@caleston-lp10:~$ bash count-requests.sh
Log name GET POST DELETE

Finance 7 15 18
Finance 9 8 16
Finance 14 11 17
Finance 5 8 11
bob@caleston-lp10:~$

I don’t think you are typing this out correctly. How does the F in Finance become a capital letter. Please copy and paste the exact text in a code block.