Another thought is to use the "message of the day" augeas lens (motd); this is the simplest possible augeas lens and it basically returns every line in the file as a row in the returned table. You can then use standard SQL to parse the lines. Unfortunately, you will have to modify the motd lens to have it parse files other than /etc/motd.