Overwrite last line on terminal
问题 My bash-script looks as following: echo "Description:" while [ $finishInput -eq 0 ]; do read tmp desc="$desc"$'\n'"$tmp" if [ -z "$tmp" ]; then finishInput="1" fi done echo -n "Maintainer:" read maintainer It reads to the desc var until a empty line is passed. After that, i want to read in other stuff. When executing my current script it looks like this: Description: Line 1 Line 2 Maintainer: I would like to overwrite the last empty line with the "Maintainer:". I searched for a solution but