until passwd
do
echo "Try again"
done
or
while ! passwd
do
echo "Try again"
done
More Related Contents:
- A variable modified inside a while loop is not remembered
- While loop stops reading after the first line in Bash
- How to pipe input to a Bash while loop and preserve variables after loop ends
- Echoing the last command run in Bash?
- Command substitution: backticks or dollar sign / paren enclosed? [duplicate]
- Why piping input to “read” only works when fed into “while read …” construct? [duplicate]
- Bash conditional based on exit code of command
- Variables getting reset after the while read loop that reads from a pipeline
- What is a unix command for deleting the first N characters of a line?
- Reading key/value parameters from a file into a shell script
- How do I check if a directory exists or not in a Bash shell script?
- Bash scripting, multiple conditions in while loop
- Syntax for a single-line while loop in Bash
- Looping through find output in Bash where file name contains white spaces
- run bash command in new shell and stay in new shell after this command executes
- while loop to read file ends prematurely
- How to break out of a loop in Bash?
- -bash: __git_ps1: command not found
- How to reload .bashrc settings without logging out and back in again?
- How do I iterate over a range of numbers defined by variables in Bash?
- How to loop through file names returned by find?
- When are square brackets required in a Bash if statement?
- Is there a TRY CATCH command in Bash
- Parsing variables from config file in Bash
- How to list variables declared in script in bash?
- Bash variable substitution vs dirname and basename
- Why bash alias doesn’t work in scripts? [duplicate]
- pipe stdout and stderr to two different processes in shell script?
- How to iterate over list which contains whitespaces in bash
- What is the proper way to test a Bash function’s return value?