[Execute command] problem: new line on the end of output
Posted: 19 Mar 2019 16:44
Hi,
I am trying to create "an application" in Automagic with possibility to change the language of UI. So I have some text files in format:
variable_name=text string
To convert text from files into global_variables I use an action "Execute command" with command:
grep "global_variable" /patch/{value}.lang | cut -d "=" -f 2
And in field "Variable to store the standard output" I put "global_variable".
It works, but the global_variable is filled by text with new line which cause me some issues.
Instead of:
"Text string"
I get
"Text string
"
Does anyone know how to fix it or how to get strings for variables from txtfile in different way?
I am trying to create "an application" in Automagic with possibility to change the language of UI. So I have some text files in format:
variable_name=text string
To convert text from files into global_variables I use an action "Execute command" with command:
grep "global_variable" /patch/{value}.lang | cut -d "=" -f 2
And in field "Variable to store the standard output" I put "global_variable".
It works, but the global_variable is filled by text with new line which cause me some issues.
Instead of:
"Text string"
I get
"Text string
"
Does anyone know how to fix it or how to get strings for variables from txtfile in different way?