I have a file which contains the output of df from 3 servers.
It also lists a summary for each server, listing total/used/available space
at the bottom of each df output (the example of this file will be provided for your convinience later on here)
what im trying to do is probably best described by example
when i run the script, i'd like it to parse that file for today's input and make a nice little list, saying "server such and such, total/used/available space is blah blah." and then for each server list the partitions, with how much space they take up..
now, what i dont understand how to do is this: i made a regular expression to find the server's name, and today's datestamp.. but how do i now parse it's "chunk" in this input file??
the code that i have so far, and the example of that file follows below, in the replies.
please help/guide :)