#!/bin/sh read -r -p "Are you sure you want to continue? [y/N] " response # Convert to lower case response=${response,,} if [[ ! $response =~ ^(yes|y)$ ]] then exit 0 fi # --------- Execution --------- echo Put your script execution here. # --------- End of execution --------- echo Completed!