How to insert a formated line in a file

3 views
Skip to first unread message

Jerome Jean Verleyen

unread,
Jan 16, 2026, 12:42:35 PMJan 16
to help-cfengine
Dear all.
I've using the edit line function with insert_lines. What i need is to insert a formated line, like this:

$(bundle.value1)[TAB character]$(bundle.value2)[TAB character]$(bundle.value3).

I could do with simple space character, but i don't found how to insert TAB in the line.. Like a printf() function in C language.

Someone could help me?

Regards!

Happy new year!

Marco Marongiu

unread,
Jan 16, 2026, 12:58:16 PMJan 16
to help-c...@googlegroups.com

Hi Jerome Jean, happy new year!

Check ${const.t}. https://docs.cfengine.com/docs/lts/reference/special-variables/const/

Ciao,
bronto

Jerome Jean Verleyen

unread,
Jan 16, 2026, 4:55:45 PMJan 16
to help-cfengine
Hi Bronto.
That was just i'm searching! Thank's a lot!

Ciao!

Marco Marongiu

unread,
Jan 16, 2026, 5:00:48 PMJan 16
to help-c...@googlegroups.com


On 16/01/2026 22:55, Jerome Jean Verleyen wrote:
That was just i'm searching! Thank's a lot!
My pleasure ;-) 
Reply all
Reply to author
Forward
0 new messages