I have a bash script like
./script -a filename
And I have the content of a file in a variable $CONTENT
How can I pass the variable into the command. I mean I could write the content of the variable down to disk first, but that seems to be too much overhead.
Is there a better solution?
Something like
./scrip -a << $CONTENT