Grep log file
Revision as of 13:27, 13 June 2013 by Troels Emtekær Linnet (talk | contribs) (→Grep the log file for commands)
Grep the log file for commands
First we find which commands relax has performed, and separate into the different fitting models
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