【发布时间】:2021-02-26 02:38:34
【问题描述】:
$ cat test.sh
#!/bin/bash
sc=$(tput sc)
rc=$(tput rc)
printf "$sc%s\n" "Type word"
read -r word
printf "$rc%s\n" "Type word (again)"
read -r word_confirmation
$ ./test.sh
Type word (again)
test
我想清除test。
【问题讨论】: