I recently wanted to have a bash script file stop at the end of the command sequence so that I could check which disk directory was then active. There are at least two ways to achieve this.
(1) Use an echo – read command sequence
echo “Shell command complete”
(2) Use the read command with a p(rompt) switch
read -p “Shell command complete”
read – Read a line from standard input
How do I prompt for input in a Linux shell script?