Dear developer, In the output file of pwscf of a scf calculation, only the last "total energy" has a '!' before it, as "! total energy", so we can use grep "! total energy" to fine it easily. I think it is also convenient to add a "!" also before the last "total magnetization" of a scf calculation, isn't it? Yours, Ding