1 2 3 4 5 6 7
#!/bin/bash while read pipe; do tput rc; tput el printf "\r$pipe" | tr "\n" "\r" done echo