Difference between revisions of "Grep log file"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
sed -i 's/^- /\n#- /' greplogfile.txt ; | sed -i 's/^- /\n#- /' greplogfile.txt ; | ||
sed -i 's/^minimise(/\nminimise(/' greplogfile.txt ; | sed -i 's/^minimise(/\nminimise(/' greplogfile.txt ; | ||
+ | sed -i '0,/spectrum.replicated(/s//\nspectrum.replicated(/' greplogfile.txt; | ||
== See also == | == See also == |
Revision as of 13:35, 13 June 2013
Grep the log file for commands
First we find which commands relax has performed, and separate into the different fitting models.
We also just make some line space and important points
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/^- /\n#- /' greplogfile.txt ; sed -i 's/^minimise(/\nminimise(/' greplogfile.txt ; sed -i '0,/spectrum.replicated(/s//\nspectrum.replicated(/' greplogfile.txt;