Thanks a lot Dear Hande and Cantele...<br><br><div class="gmail_quote">On Mon, Oct 26, 2009 at 7:30 PM, Hande Ustunel <span dir="ltr"><<a href="mailto:hande@newton.physics.metu.edu.tr">hande@newton.physics.metu.edu.tr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear Mohnish<br>
<br>
If it is a shell script that you are running you might try something like<br>
<br>
for file in out.*<br>
do<br>
E=`grep ! $file | tail -1 | awk '{print $5}'`<br>
echo E >> energies-file<br>
done<br>
<br>
This is just a snippet you can place in your script as required. Please do<br>
be careful about the way the quotation marks are pointing.<br>
<br>
Best wishes,<br>
Hande<br>
<div class="im"><br>
On Mon, 26 Oct 2009, mohnish pandey wrote:<br>
<br>
> I am beginner of quantum espresso. I am trying to calculate the lattice<br>
> constant for zinc oxide graphitic and wurtzitic structure . I am using a<br>
> script for that. But I have to see each and every file to check the energy<br>
> and to decide which one is minimum. Can you guys please help me to get a<br>
> shortcut for this I mean after running a loop I get a minimum energy file<br>
> instead of doing it manually and then deciding which lattice parammeters<br>
> fits to minimum energy..<br>
><br>
> Thanks in advance.<br>
> Mohnish Pandey<br>
><br>
><br>
<br>
--<br>
</div>Hande Toffoli<br>
Department of Physics<br>
Office 439<br>
Middle East Technical University<br>
Ankara 06531, Turkey<br>
Tel : +90 312 210 3264<br>
<a href="http://www.physics.metu.edu.tr/%7Ehande" target="_blank">http://www.physics.metu.edu.tr/~hande</a><br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://www.democritos.it/mailman/listinfo/pw_forum" target="_blank">http://www.democritos.it/mailman/listinfo/pw_forum</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mohnish Pandey<br>Y6262,4th Year Undergraduate,<br>Department of Chemical Engineering,<br>IIT KANPUR<br>