3 lines
178 B
Bash
Executable file
3 lines
178 B
Bash
Executable file
#!/bin/sh
|
|
# Pipe a command into this and each output line will rewrite the previous one
|
|
sed --unbuffered '2,$s|^|\\e[1A\\e[K|' | cut -c-$(tput cols) | xargs -d '\n' -L 1 echo -e
|