I am using awk inside of the bash script to print a new file contained the name of the variable defined in bash
#!/bin/bash
file_name='test.log'
awk -v file="$file_name" '
BEGIN {
print "@ subtitle \"file\""
}
in that case the awk prints
@ subtitle "file"
instead of the expected output
@ subtitle "test.log"