#!/bin/bash echo "Write 'yes do as i say' to confirm that you REALLY want to do this: $@" read if [[ "${REPLY,,}" = "yes do as i say" ]] then eval $@ else echo "aborting" fi