mycommand.py -a `cat myfile.json`
In this example, I need the contents of
myfile.json to be passed as the value to the
-a argument of
mycommand.py. This almost works, but I need the file contents (which include double quotes and newlines) to be surrounded by quotes. This does not work:
mycommand.py -a '`cat myfile.json`'
The use of the single quotes prevents the backtick quotes from working.