From 8f26d33d1556ee6fed62fab1cb90e3df7a27c8e7 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 4 Dec 2023 11:52:58 -0800 Subject: [PATCH] Improve 2000/primenum/try.sh + update .gitignore --- 2000/primenum/.gitignore | 1 + 2000/primenum/try.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/2000/primenum/.gitignore b/2000/primenum/.gitignore index 858c9db1a..8efa69eac 100644 --- a/2000/primenum/.gitignore +++ b/2000/primenum/.gitignore @@ -1,3 +1,4 @@ primenum primenum.orig prog.orig +try.sh.txt diff --git a/2000/primenum/try.sh b/2000/primenum/try.sh index 46772a117..0020aaee6 100755 --- a/2000/primenum/try.sh +++ b/2000/primenum/try.sh @@ -28,7 +28,7 @@ rm -f try.sh.txt echo "$ ./primenum 101 < try.sh | ./primenum n > try.sh.txt" 1>&2 ./primenum 101 < try.sh | ./primenum n > try.sh.txt echo "$ diff try.sh try.sh.txt" -read -r -n 1 -p "Press any key to see diff (through less): " 1>&2 -diff try.sh try.sh.txt|less - +read -r -n 1 -p "Press any key to see diff (space = next page, q = quit): " 1>&2 +diff try.sh try.sh.txt|less -EXF +rm -f try.sh.txt