Improve 2004/jdalbec try scripts

This commit is contained in:
Cody Boone Ferguson committed 2024-01-20 10:05:01 -08:00
1 parent 6c2bf8cb5a
commit e0dba2f0ca
2 files changed
+23 -22

No files matched your search

+16 -9
View File
@@ -16,24 +16,31 @@ make clobber CC="$CC" alt >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "$ ./jdalbec.alt 11 | head" 1>&2
read -r -n 1 -p "Press any key to run: ./jdalbec.alt 11 | head: "
echo 1>&2
./jdalbec.alt 11 | head
echo 1>&2
read -r -n 1 -p "Press any key to continue: "
read -r -n 1 -p "Press any key to run: ./jdalbec.alt 47 | head -n 52572 | grep ':': "
echo 1>&2
echo "$ ./jdalbec.alt 47 | grep : | head -n 52572 | grep :" 1>&2
./jdalbec.alt 47 | head -n 52572 | grep :
./jdalbec.alt 47 | head -n 52572 | grep ':'
echo 1>&2
read -r -n 1 -p "Press any key to set 7 numbers per line: "
make clobber CC="$CC" CDEFINE="-DAg=7" alt >/dev/null || exit 1
echo 1>&2
make clobber CC="$CC" Ag=7 alt >/dev/null || exit 1
echo "$ ./jdalbec.alt 101 | head" 1>&2
read -r -n 1 -p "Press any key to run: ./jdalbec.alt 101 | head: "
echo 1>&2
./jdalbec.alt 101 | head
echo 1>&2
read -r -n 1 -p "Press any key to continue: "
read -r -n 1 -p "Press any key to run: ./jdalbec.alt 7 | head -n 47 | grep ':': "
echo 1>&2
./jdalbec.alt 7 | head -n 47 | grep ':'
echo 1>&2
read -r -n 1 -p "Press any key to run: ./jdalbec.alt 1 1 | head: "
echo 1>&2
./jdalbec.alt 1 1 | head
echo 1>&2
echo "$ ./jdalbec.alt 7 | grep : | head -n 47 | grep :" 1>&2
./jdalbec.alt 7 | head -n 47 | grep :
+7 -13
View File
@@ -16,27 +16,21 @@ make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear
echo "$ ./jdalbec 11 | head" 1>&2
read -r -n 1 -p "Press any key to run: ./jdalbec 11 | head: "
echo 1>&2
./jdalbec 11 | head
echo 1>&2
read -r -n 1 -p "Press any key to continue: "
read -r -n 1 -p "Press any key to run: ./jdalbec 47 | head | grep ':': "
echo 1>&2
echo "$ ./jdalbec 47 | grep : | head | grep :" 1>&2
./jdalbec 47 | head | grep :
./jdalbec 47 | head | grep ':'
echo 1>&2
read -r -n 1 -p "Press any key to continue: "
read -r -n 1 -p "Press any key to run: ./jdalbec 1 | head: "
echo 1>&2
echo "$ ./jdalbec 1 | head" 1>&2
./jdalbec 1 | head
echo 1>&2
read -r -n 1 -p "Press any key to continue: "
read -r -n 1 -p "Press any key to run: ./jdalbec 1 1 | head: "
echo 1>&2
echo "$ ./jdalbec 11 | head" 1>&2
./jdalbec 11 | head
echo 1>&2
read -r -n 1 -p "Press any key to continue: "
echo "$ ./jdalbec 1 1 | head" 1>&2
./jdalbec 1 1 | head
echo 1>&2