<div dir="ltr"><div>Hello,</div><div><br></div><div>I found a very small 'bug' with the output of the computation time. I wanted to parse multiple files to get the their wall time. I thought it was fixed width but as seen below the times without minutes at the top are all shifted by one space. Also using fields to grab the data is also troublesome since a space is put between minutes and seconds when the seconds are less than 10 (highlight in red)</div><div><br></div><img src="cid:ii_14d94c9864bf6a53" alt="Inline image 2" width="436" height="255"><br><div><br></div><div>One (probably poor) way of grabbing the wall time isn't very straight-forward:</div><div><div><font face="monospace, monospace">line=`grep PWSCF Fe.scf.out_s${s}_k${k} | tail -n 1`</font></div><div><font face="monospace, monospace">minutes=`echo $line | sed 's/.*CPU //g' | egrep -o "[0-9]*m" | tr -d m`</font></div><div><font face="monospace, monospace">seconds=`echo $line | sed 's/.*CPU //g' | egrep -o "[0-9]*\.[0-9]*s" | tr -d s`</font></div><div><font face="monospace, monospace">t=`echo "${minutes:-0}*60 + $seconds" | bc`</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Cheers,</font></div><div><font face="arial, helvetica, sans-serif">Blair</font></div></div>