Ok I want to awk certain parts of a file based on whether or not they have certain words. I'll post an example of my file.
**********************
Server1
**********************
Current System Uptime " 6 day(s), 21 hour(s), 13 minute(s), 35 second(s)"...
I've seen something like this in other places but I'm extremely new to using awk and couldn't make any sense of it. Could someone please tell me how to get this:
System Availability 100.00%
Total Uptime 551d 8h 12m 23s
Total Downtime 0d 0h 24m...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.