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 »(«
• 2,815 views
•
link
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
• 0 views
•
link
Log in to answer this question.