I need "set" variable from script to memory (global) and read it again in second run of this script with defined last state of this variable.
Script.
echo $count
let "count=count+1"
export $count
echo $count
This shows me 1
when I run this script again. I need 1
, and in the case I run the script again, I need 2
, in case of third run 3
, etc.
I thought export
do this, but it is not working.
Thanks.