#!/bin/sh # usage: with-dialog-and-delay command ... read -p "are you sure? [y/N]" -r reply if [ "$reply" = "y" ] then echo waiting 5 seconds... sleep 5 echo command execution started $* fi