I try to add a 'main.h' template.
I was try to use {command:...} for #ifndef, #define
My srings is:
#ifndef {command:tr ". " "_" <<< "{filename}" | tr "[:lower:]" "[:upper:]"} #define {command:tr ". " "_" <<< "{filename}" | tr "[:lower:]" "[:upper:]"} #endif /* {command:tr ". " "_" <<< "{filename}" | tr "[:lower:]" "[:upper:]"} */
When i try to create new file from this template geany replace this {command:...} to nothing.
The command is not run in a shell, so
<<<
and|
will not work. Use/bin/sh -c
to run commands in a shell.