Improve 1996/schweikh2/try.sh
This commit is contained in:
1 parent
9bcfcea20c
commit
1de404c42b
1 file changed
+8
-7
@@ -15,16 +15,17 @@ make CC="$CC" all >/dev/null || exit 1
|
|||||||
# clear screen after compilation so that only the entry is shown
|
# clear screen after compilation so that only the entry is shown
|
||||||
clear
|
clear
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to to run ./schweikh2: " 1>&2
|
read -r -n 1 -p "Press any key to to run ./schweikh2 (space = next page, q = quit): " 1>&2
|
||||||
./schweikh2
|
echo >&2
|
||||||
|
./schweikh2 | less -rEXF
|
||||||
echo >&2
|
echo >&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key to run: ./schweikh2 15 1 0 0/0 | head -n 15: " 1>&2
|
read -r -n 1 -p "Press any key to run: ./schweikh2 15 1 0 0/0 | head -n 15: " 1>&2
|
||||||
|
echo >&2
|
||||||
./schweikh2 15 1 0 0/0 | head -n 15
|
./schweikh2 15 1 0 0/0 | head -n 15
|
||||||
echo >&2
|
echo >&2
|
||||||
|
|
||||||
read -r -n 1 -p "Press any key one more time: " 1>&2
|
read -r -n 1 -p "Press any key to run grep -v '#' schweikh2.c (space = next page, q = quit): "
|
||||||
i=0
|
echo 1>&2
|
||||||
while ((i++<15)); do
|
grep -v '#' schweikh2.c | less -rEXF
|
||||||
grep -v '#' schweikh2.c
|
echo 1>&2
|
||||||
done
|
|
||||||
Reference in new issue
Block a user