I have roughly 1 million images on a directory. The files were numbered from 1 to n. I am using for loop to iterate over each image. Since each iteration is checked by individuals, only certain number of iterations could be done in a day. When I begin the loop again the subsequent day, the loop obviously begins from the first file again.
I saved the files iterated through the loop in a text file and read the last line of the text file before the loop starts every time. I am trying to use the last read file as a beginning for the for loop.
The following is the code done so far:
query=/ImageFolder/*.jpg fil=$( tail -n 1 readfiles.txt ) for f in $query do python ~/runprog.py --query $f done I am not sure how to use the $fil as my starting point in the for loop and the start iterating subsequent files from thereon.
to_be_reviewed.