qfedu-linux-advanced-level/day1/d27.sh

8 lines
136 B
Bash
Raw 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
echo "请输入内容exit退出: "
read -p ">" cmd
until [ $cmd == "exit" ]; do
echo "$cmd"
read -p ">" cmd
done