This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Syntax Error near unexpected token (

I try to convert tblout to gff

grep -v ^\# my.cmscan.tblout | awk ‘ { printf(“%s\tinfernal\t%s\t%s\t%s\t%s\t%s\t.\n”, $4, $2, $10, $11, $17, $12); }’ > my.cmscan.gff

syntax error near unexpected token »(«

infernal ncrna

1 answer

You have to use single quotation ('') inside awk brackets:

grep -v ^# my.cmscan.tblout | awk {' printf(“%s\tinfernal\t%s\t%s\t%s\t%s\t%s\t.\n”, $4, $2, $10, $11, $17, $12); '} > my.cmscan.gff

Log in to answer this question.