I’m trying to pass in a file and a single line of code into a program, say example.
My line:
i := 1;
My file (file):
blah1
blah2
blah3
Input to program:
i := 1;
blah1
blah2
blah3
I’m thinking it would be a one line such as:
example < `echo "i := 1;\n" cat file`
or something like that
What you need is here string:
From bash manual: