printf >&2 '%s: reading from stdin...' "$(basename "$0")" stdin=$(cat <&0) printf >&2 '\r\033[0K' echo "$stdin"