How can I check if the file exists. I tried something with the until loop but I couldn't, it's not working properly. What I want to do is to have the file I specified in a folder. If not, I want it to go into an infinite loop. exit the loop if it exists
I leave the code I tried below
while ! find /mnt/c -name 'file*.msixbundle' 1> /dev/null 2>&1
do
echo "file not found"
done