Do you want to delete only the folders that contain the "done" file and keep the rest? Or do you want to check all folders and delete all, only if all folders contain the "done" files? Is there a fixed set of folders?
Hi.
Is there a way to script the check for a done file in all directories (inside the home folder) and then download/delete the directory if said "done" file exists.
Sample structure (/home/Directories-To-check).
Apologies if this question has been asked before but I couldn't find anything to steer me in the correct direction.
Thank u for reading this and thank you in advance for the help