I'm want use $ macro in groovy GString. When i'm wrote this code
['cdata','tdata'].each {
def sql = "select * from $it_1"
}
i'm get error unknown property $it_
ok, i'm rewrite it
['cdata','tdata'].each {
def sql = "select * from ${it}_1"
}
then i'm get unwanted quotes in result string - "select * from 'cdata'_1"
Question is how i'm can use $-macro in GString to achive "select * from cdata_1" result string?