Open main menu

Changes

Grep log file

27 bytes removed, 07:55, 29 August 2013
== Grep the log file for commands ==
First we find which commands relax has performed, and separate into the different fitting models.<br>
We also just make some line space and important points. Then we replace instances of '''relax> ''' with empty, and comment out the model line. 
<source lang="bash">
set IN=logfile.txt ;
set OUT=grep_log_to_commands.txt ;
egrep -wi --color 'relax>| model -' $IN > $OUT ;
</source>
Then we replace instances of '''relax> ''' with empty, and comment out the model line
<source lang="bash">
sed -i "s/relax> //" $OUT ;
sed -i 's/^- /\n#- /' $OUT ;
Trusted, Bureaucrats
1,382

edits