run command until successful n times bash
问题 I want to run a command n number of times if it returns unsuccessful I have started with the below loop until find . -type f -exec md5sum {} \; do <something > done I want to run the about n times before it goes continues to the next file Not sure how I can continue from here. I have tried using the return variable $? and looping using this but had no luck Also how could I use the above loop or what is proposed here to put the output of the find into a variable thanks Let me make this abit