Download
10 lines 232 BBashModified 2026-10-25executable raw
12345678910
#!/bin/sh
# Display text from the current line upward (instead of downward)
input="$(cat)"
if [ -z "$input" ]; then
    echo
else
    printf "\\033[$(printf '%s\n' "$input" | wc -l)A\\033[J" >/dev/tty
fi
echo "$input"
echo "$input"