Syntax Error near unexpected token (
1
0
Entering edit mode
4.4 years ago
ana_maumau • 0

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 • 2.3k views
ADD COMMENT
0
Entering edit mode
4.4 years ago
elcortegano ▴ 200

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
ADD COMMENT

Login before adding your answer.

Traffic: 1360 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6