Add 1996/schweikh2/try.sh + format/typo checks
The try.sh script runs some of the commands in the try section as well as a minimal version of something the author recommends one trying for a pleasing effect. The reason it is minimal is because it is an infinite loop and it seems like not a good idea to have an infinite loop in a script that demonstrates a few things of the entry. Format and typo check the README.md file.
This commit is contained in:
1 parent
f704c2989e
commit
94f742eabd
3 files changed
+49
-16
No files matched your search
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
make all >/dev/null || exit 1
|
||||
|
||||
|
||||
read -r -n 1 -p "Press any key to to run ./schweikh2: " 1>&2
|
||||
./schweikh2
|
||||
echo >&2
|
||||
|
||||
read -r -n 1 -p "Press any key to run: ./schweikh2 15 1 0 0/0 | head -n 15: " 1>&2
|
||||
./schweikh2 15 1 0 0/0 | head -n 15
|
||||
echo >&2
|
||||
|
||||
read -r -n 1 -p "Press any key one more time: " 1>&2
|
||||
i=0
|
||||
while ((i++<15)); do
|
||||
grep -v '#' schweikh2.c
|
||||
done
|
||||
Reference in new issue
Block a user