diff --git a/2011/akari/try.sh b/2011/akari/try.sh index 98053a63a..08b81f79f 100755 --- a/2011/akari/try.sh +++ b/2011/akari/try.sh @@ -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