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

8 lines
136 B
Bash
Raw Permalink Normal View History

2023-08-14 17:48:45 +08:00
#!/bin/bash
echo "请输入内容exit退出: "
read -p ">" cmd
until [ $cmd == "exit" ]; do
echo "$cmd"
read -p ">" cmd
done