Login  Register

Re: reset number after each month

Posted by ErmanArslansOracleBlog on May 17, 2017; 12:17pm
URL: http://erman-arslan-s-oracle-forum.124.s1.nabble.com/reset-number-after-each-month-tp2706p2711.html

I offer you the following solution , execute your script with "."

example:  . ./your_script

This way, your script will be executed it in the context of the current shell.

But if you disconnect and reconnect to the server , then again your "n" variable will be reinitialized.(as your shell be a new one)