I have a script that every time creats several tiff files and stores them in the same directory. I want to change it in a way that every time it processes only the new files, to avoid repeating the same processing every time for every file.
I looked the manual and several questions so far, made an if statement with ! -e, ! -f, ! -s (I don't really get the difference but none of them worked anyway), tried to add spaces between all parts of code, tried the filename with "" and without but there is no way I can make it work.
Any suggestions? Here is my code:
FileName=$WORKDIR'/.../name_of_the_file.tif'
if [ ! -e "${FileName}" ]; then
...
fi