title: Two shell scripts using same variable
body: <p>I have two shell scripts test1.sh and test2.sh.<br>
  In test1.sh I have the below statements :<br>
  In, <strong>test1.sh</strong>,I have a variable <strong>I</strong> whose value will be used by <strong>test2.sh</strong></p>
  
  <pre><code>#!/bin/sh
  I="10"
  echo $I
  </code></pre>
  
  <p>In, <strong>test2.sh</strong>, the same value of the variable will be copied and printed</p>
  
  <pre><code>#!/bin/sh
  J=$I
  echo $J
  </code></pre>
  
  <p>I need to run both the scripts in crontab, I tried <strong>export</strong> command, but nothing worked.</p>