#!/bin/sh today=$(date +%Y-%m-%d) printf "$today" | xsel -b xdotool type "$today"