in reply to Trying to make a simple countdown timer

It’s goofy but I use this in front of commands that I want a moment to reconsider whether or not I really meant to run it–

perl -e '$|++; sleep 1 && printf "\r%2d...", $_ - 1 for reverse 1 .. 10; print $/'

I think the order with the \r is actually “buggy” / “off-by-one” so if someone clever wants to revamp/improve. Dot, dot, dot. :P Anything longer than a minute these days Alexa and Siri got my back.