#!/bin/bash echo "A First Method" read -s -n 1 -p "Press any key to continue..." # insert echo here for cleaner output echo echo "A Second Method" echo "Press any key to continue..." read -s -n 1 any_key echo "Now exiting" exit 0