shell-scripts/tutorials/basic/14-until-loop.sh

10 lines
232 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
#Program:
# 判断输入如果用户输入yes结束循环否则继续
#History:
# 2024/07/14 LouisFonda<yigencong@yahoo.com>
until [ "${yn}" == "yes" -o "${yn}" == "YES" ]
do
read -p "是否结束运行" yn
done