No, you cannot do this, as the PRINT
directive does not work this way.
While the GPRINT
directive allows you to use \l, \r, \c for starting a new line and specifying justification options, the PRINT
statement defines a single string. Each of the strings (IE, each PRINT
directive) constitutes a new item in the output array, which is printed with one item per line.
If you are calling RRDTool from the API, you get the array of PRINT
outputs as an array pointer. This is much more helpful programmatically, but requires some post-processing if you want to do formatting as in your case.
rrdtool graph $OPTIONS | tr '\n' ' ' | sed 's/\\n/\n/g'