Exercise S4 – Extract load average from a string
The shop that you work with has a server that writes a log entry every hour in the following format:
8:00 am up 23 day(s), 21:34, 7 users, load average: 0.13
You need to write a utility that lets you track the load average on an hourly basis. Write a regex that extracts the time and the load average from the string.
[Update: The time you need to extract is the “8:00 am” part…]