Merge pull request #1027 from xexyl/2013-dlowe-fun

Updates and fixes to 2013/dlowe
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-10-12 07:38:56 -07:00
commit d9443a3596
3 files changed
+52

No files matched your search

+28
View File
@@ -28,6 +28,34 @@ make
echo "sparkline of file sizes: $(wc -c * | awk '{print $1}' | xargs ./dlowe)" # or ./slen.sh
./dlowe 0
echo "sparkline of file sizes: $(wc -c * | awk '{print $1}' | xargs ./dlowe)" # or ./slen.sh
```
Alternatively, for the lazy or those short on time, try:
```sh
./demo.sh
```
What is different about the above if you do something like:
```sh
echo 'IOCCC 2013' > ioccc.txt
./demo.sh
rm -f ioccc.txt
```
To make it simpler to see try showing just the last two lines:
```sh
./demo.sh | tail -n 2 > 1.txt
echo 'IOCCC 2013' > ioccc.txt
./demo.sh | tail -n 2 > 2.txt
rm -f ioccc.txt
diff 1.txt 2.txt
rm 1.txt 2.txt
```
## INABIAF - it's not a bug it's a feature! :-)
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
make clobber all || exit 1
echo "$ ./dlowe 0 1 2 3 4 5 6 7"
./dlowe 0 1 2 3 4 5 6 7
echo
echo "$ ./dlowe 16 32 64 128"
./dlowe 16 32 64 128
echo
echo "$ ./dlowe 16 32 64 128 256"
./dlowe 16 32 64 128 256
echo
echo "$ ./dlowe 16 32 64 128 256 512"
./dlowe 16 32 64 128 256 512
echo
echo "$ ./dlowe 0"
./dlowe 0
echo
echo "$ ./slen.sh"
./slen.sh
+3
View File
@@ -1626,6 +1626,9 @@ running `make all` will create a symlink to `dlowe` as `sparkl`. Running `make
clobber` will delete both and running `make clobber all` will ensure that the
symlink is created.
Cody also added the [demo.sh](2013/dlowe/demo.sh) script to more easily try the
program.
## [2013/hou](2013/hou/hou.c) ([README.md](2013/hou/README.md))