Linux and Unix until and while
About until and while
Shell built-in functions to repetitively execute a set of actions while/until conditions are evaluated TRUE.
until and while syntax
while [ conditions ] ; do actions ; done
until [ conditions ] ; do actions ; done
until and while examples
filename=anything while [ $filename ] do echo "file?" read filename # read from terminal find . -name $filename -print done
User is repeated prompted for a name of a file to be located, until the user chooses to finish execution.