hacky shell to answer questions about a log file