Reputation: 7310
$ 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
I would like test
to be cleared.
Upvotes: 2
Views: 828