I really do not understand how your data is indicated.
Pretending that they come from the conclusion of the secret of the program, in one line, for example,
gniourf@somewhere $ mystery abc def\ ghi jkl abc
you can (myscript file):
#!/bin/bash output=() re=( 'b' 'k$' '^g' )
For testing purposes, I did the following:
#!/bin/bash
Then (after chmod +x mystery myscript ):
gniourf@somewhere $ ./mystery abc def\ ghi jkl abc gniourf@somewhere $ ./mystery | ./myscript abc abc
Caveat. It will break sooner or later, unless the secret discovers decent material!
source share