I have a command line utility which needs a text file (to format the output) as argument. I only need the pure value and no formatting, so I'd like to have a one-line script to get the value.
The text file template.file
only contains:
$1
Here's an example of my utility:
vclient -h 10.0.0.131:3002 -t template.file -g getTempKist
What I would like is something like this:
vclient -h 10.0.0.131:3002 -t $(echo '\$1') -g getTempKist
Does anyone know how to use the result of an echo
(or maybe an alternative) instead of an external text file?
I hope someone can help.
Markus