using Sed with grep for the log file