#!/bin/bash for (( i=1; i<4; i++ )); do echo $i sleep 1 done echo "Go!" xclip -o | xdotool type --file -