Minor fixes in 1995/garry

Format fixes in README.md.

Add missing garry.alt.test.sh script I supposedly added a while back.
This commit is contained in:
Cody Boone Ferguson committed 2023-11-10 11:52:35 -08:00
1 parent fcbf64dbe2
commit cba214fd56
2 files changed
+19 -4

No files matched your search

+6 -4
View File
@@ -64,7 +64,7 @@ This program is a file filter, designed to do environment-expansion and
incorporating the ability to create binary from escaped data in the incorporating the ability to create binary from escaped data in the
environment variables. environment variables.
The calling syntax is pretty simple, just use it with stdio-redirection The calling syntax is pretty simple, just use it with `stdio`-redirection
or inside pipelines, e.g.: or inside pipelines, e.g.:
```sh ```sh
@@ -79,10 +79,12 @@ cat all_my_files/* | ./garry | lp
The syntax of the conversion of the input file is as follows: To include the The syntax of the conversion of the input file is as follows: To include the
value of an environment variable in the output file, place the name of the value of an environment variable in the output file, place the name of the
variable between "$"-signs in the input, e.g.: variable between `$`-signs in the input, e.g.:
My Home-Directory is: $HOME$ ```
I'm using the path: $PATH$ My Home-Directory is: $HOME$
I'm using the path: $PATH$
```
Unknown Env-variables or malformed expressions are ignored and kept intact. Unknown Env-variables or malformed expressions are ignored and kept intact.
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env sh
#
# garry.alt.test.sh - example of how to use garry.alt
EXAMPLEON="\33\133\61\73\67\155"
EXAMPLEOFF="\33\133\155"
DOLLAR="$"
export EXAMPLEON EXAMPLEOFF DOLLAR
# make sure alt code is built, first
make alt || exit 1
./garry.alt <garry.data