Add 1996/rcm/try.sh

The 'to use' section was fixed also: it's not just specific gzipped
files but any so it now says 'file.gz' and adds that file.gz is any
gzipped file.

The try.sh script now has the command that used to be in to use and also
what was in the try section. It also copies rcm.c to rcm.cp.c and gzips
that file and then runs the program on that to show the source. All
paged through less(1), of course. Finally it does what the judges have
in their comments (which have been updated to say that the command is in
the try.sh script). The judges' command is naturally a shorter way to do
the one added in the try.sh script but it uses tee(1) to write both to
another file (piped to less(1)) so that it can compare the two.
Obviously the files will be the same but it shows how it works in
multiple ways.
This commit is contained in:
Cody Boone Ferguson committed 2024-01-19 05:21:00 -08:00
1 parent 8da99acce0
commit 9bcfcea20c
4 files changed
+64 -2

No files matched your search

+7 -2
View File
@@ -8,16 +8,18 @@ make all
## To use:
```sh
./rcm < rfc1951.gz
./rcm < file.gz
```
where `file.gz` is some gzipped file.
## Try:
For more information try:
```sh
./rcm < rfc1952.gz
./try.sh
```
@@ -29,6 +31,9 @@ For a good no-op try:
gzip -c < rcm.c | ./rcm
```
NOTE: this is done in the [try.sh](try.sh) script as well, along with some other
commands including a way to do the above command but with more steps.
## Author's remarks: