Answer the question
In order to leave comments, you need to log in
File existence loop?
Hello.
The following problem arose, we need a loop that will check for the presence of a file, if it exists, it will copy it to another directory, if it does not exist, it pauses, then re-checks its presence and so on until the file is created . As far as I understand it should be something like:
if [ -f имя.файла ];
then
cp
else
???????
fi
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question