Improve 2011/akari/try.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-01-24 07:42:03 -08:00
1 parent af05d9dac1
commit 98c5834938
1 file changed
+56 -18
+56 -18
View File
@@ -20,48 +20,86 @@ rm -f akari2 akari3 akari4
# clear screen after compilation so that only the entry is shown
clear
read -r -n 1 -p "Press any key to run: ./akari < example.ppm > odd_output.ppm: "
echo 1>&2
./akari < example.ppm > odd_output.ppm
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari - - even < example.ppm > even_output.ppm: "
echo 1>&2
./akari - - even < example.ppm > even_output.ppm
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari example.ppm odd_output.ppm: "
echo 1>&2
./akari example.ppm odd_output.ppm
make akari2 >/dev/null|| exit 1
read -r -n 1 -p "Press any key to cat akari2.c: "
cat akari2.c
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari2 < akari2.c: "
./akari2 < akari2.c
read -r -n 1 -p "Press any key to run: make akari2 >/dev/null || exit 1: "
echo 1>&2
make akari2 >/dev/null || exit 1
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari2 rot13 < akari2.c: "
./akari2 rot13 < akari2.c
read -r -n 1 -p "Press any key to show akari2.c (space = next page, q = quit): "
echo 1>&2
less -rEXF akari2.c
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari2 < akari2.c (space = next page, q = quit): "
echo 1>&2
./akari2 < akari2.c | less -rEXF
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari2 rot13 < akari2.c (space = next page, q = quit): "
echo 1>&2
./akari2 rot13 < akari2.c | less -rEXF
echo 1>&2
read -r -n 1 -p "Press any key to run: make akari3 >/dev/null|| exit 1: "
echo 1>&2
make akari3 >/dev/null|| exit 1
echo 1>&2
read -r -n 1 -p "Press any key to cat akari3.c: "
read -r -n 1 -p "Press any key to show akari3.c: "
echo 1>&2
cat akari3.c
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari3: "
echo 1>&2
./akari3
echo 1>&2
read -r -n 1 -p "Press any key to run: make akari4 >/dev/null|| exit 1: "
echo 1>&2
make akari4 >/dev/null|| exit 1
echo 1>&2
read -r -n 1 -p "Press any key to cat akari4.c: "
read -r -n 1 -p "Press any key to show akari4.c: "
echo 1>&2
cat akari4.c
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari4: "
echo 1>&2
./akari4
echo 1>&2
read -r -n 1 -p "Press any key to run: ./akari2 rot13 < akari.c | ./akari > rot13.c; cat rot13.c: "
./akari2 rot13 < akari.c | ./akari > rot13.c; cat rot13.c
echo "$ ./akari2 rot13 < akari.c | ./akari | tee rot13.c" 1>&2
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2
./akari2 rot13 < akari.c | ./akari | tee rot13.c | less -rEXF
read -r -n 1 -p "Press any key to run: ./akari2 < akari.c > expanded_output.txt: "
./akari2 < akari.c > expanded_output.txt
read -r -n 1 -p "Press any key to run: ./akari2 rot13 < akari.c > expanded_and_rot13_output.txt: "
./akari2 rot13 < akari.c > expanded_and_rot13_output.txt
read -r -n 1 -p "Press any key to cat expanded_and_rot13_output.txt: "
cat expanded_and_rot13_output.txt
echo "$ ./akari2 < akari.c | tee expanded_output.txt" 1>&2
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2
./akari2 < akari.c | tee expanded_output.txt | less -rEXF
echo 1>&2
echo "$ ./akari2 rot13 < akari.c | tee expanded_and_rot13_output.txt" 1>&2
read -r -n 1 -p "Press any key to continue (space = next page, q = quit): "
echo 1>&2
./akari2 rot13 < akari.c | tee expanded_and_rot13_output.txt | less -rEXF
echo 1>&2