bash - return to position in array after exit -


apparently wasn't clear when last asked this, i'll try again.

i have array full of values, lets call them primenumbers.txt

i have bash script lets call primechecker

the script take each , every value , in array , 1 @ time , run through. want able stop primechecker @ point in processing array; lets call x , restart script in way start position in array x+1.

if there further clarification need please let me know.

could store current index in file in /tmp , check file on startup:

for in nums;   echo $i > /tmp/marker   ... done 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -