Author: adc random mpd album ================== $ mpc findadd album "$(mpc list album | sort -R | head -1)" Explanation: Add a random album to the mpd queue. timestamp =========== $ while read -r; do printf '%s %s\n' "$(date '+$H:$M:$S')" "$REPLY"; done Explanation: Add a timestamp to every line in stdin.