From d1b6f9531bd88afc667742abc5870b35c118bc38 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 16 Jan 2024 12:10:25 -0800 Subject: [PATCH] Slightly improve 1995/dodsond1/try.sh --- 1995/dodsond1/try.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/1995/dodsond1/try.sh b/1995/dodsond1/try.sh index 817cb73dc..d87ecb209 100755 --- a/1995/dodsond1/try.sh +++ b/1995/dodsond1/try.sh @@ -17,8 +17,12 @@ make CC="$CC" all >/dev/null || exit 1 # clear screen after compilation so that only the entry is shown clear -echo "$ cat try.this.txt" +read -r -n 1 -p "Press any key to show try.this.txt: " +echo 1>&2 cat try.this.txt +echo 1>&2 -echo "$ ./dodsond1 < try.this.txt" +read -r -n 1 -p "Press any key to run: ./dodsond1 < try.this.txt: " +echo 1>&2 ./dodsond1 < try.this.txt +echo 1>&2