<div dir="ltr"><div><div><div>Dear Sir,<br></div>the script is working perfectly fine now. I had to just change "ecutrho" to "$ecutrho". <br></div>So now it becomes $ecutrho= $ecut*8<br><br></div>Regards,<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 2:39 PM, Lorenzo Paulatto <span dir="ltr"><<a href="mailto:lorenzo.paulatto@impmc.upmc.fr" target="_blank">lorenzo.paulatto@impmc.upmc.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
On 07/15/2014 10:15 AM, Giovanni Cantele wrote:<br>
<blockquote type="cite">
the shell script is not able to make mathematical operations, so
if you write
<div>ecutrho=$ecut*8</div>
</blockquote>
<br>
<br></div>
Actually, the bash shell can do some integer arithmetic. This would
work:<br>
ecutrho = $[$ecut*8]<br>
<br>
hth<span class="HOEnZb"><font color="#888888"><br>
<br>
<pre cols="72">--
Dr. Lorenzo Paulatto
IdR @ IMPMC -- CNRS & Université Paris 6
+33 (0)1 44 275 084 / skype: paulatz
<a href="http://www.impmc.upmc.fr/~paulatto/" target="_blank">http://www.impmc.upmc.fr/~paulatto/</a>
23-24/4é16 Boîte courrier 115, 4 place Jussieu 75252 Paris Cédex 05</pre>
</font></span></div>
<br>_______________________________________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" target="_blank">http://pwscf.org/mailman/listinfo/pw_forum</a><br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div dir="ltr"><span style="color:rgb(204,0,0)"><span style="color:rgb(153,0,255)"><b>Dr. Siddheshwar chopra,</b></span><br>
</span><span style="color:rgb(116,27,71)"><i>M.Sc., Ph.D (Physics)<br>Assistant Professor (Physics),<br></i></span></div><span style="color:rgb(116,27,71)"><i>Amity University, Noida, India.</i></span><span style="color:rgb(116,27,71)"><i><br>
</i></span><br></div>
</div>