Given a multisample VCF file with different samples, if the sample name is given as a external variable, such as
sample_name="NA00001"
zcat MULTI_VCF | vawk -v ext_var=$sample_name '{print S$ext_var$GT}'
will not work.
However when manually typing the name at the field, it does:
zcat MULTI_VCF | vawk '{print S$NA00001$GT}'
Any workaround?
Thanks!