diff --git a/1995/garry/README.md b/1995/garry/README.md index 635806c93..bc142e2db 100644 --- a/1995/garry/README.md +++ b/1995/garry/README.md @@ -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 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.: ```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 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. diff --git a/1995/garry/garry.alt.test.sh b/1995/garry/garry.alt.test.sh new file mode 100755 index 000000000..c6f980c80 --- /dev/null +++ b/1995/garry/garry.alt.test.sh @@ -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