egrep -wi --color 'relax>| model -' LOGFILE.txt > greplogfile.txt
Then we replace instances of '''relax> ''' with empty, and comment out the model line
sed -i "s/relax> //" greplogfile.txt; sed -i "'s/relax> ^- /#- /" ' greplogfile.txt;
== See also ==