Hi guys
My knowledge on shell linux/unix is pretty basic. I need some help with a command I don't think is working, it may be something simple, which I find is usually the case with informatics!
One line of my dataset looks like this:
"exonic","GPR153","synonymous SNV","NM_207370:c.A144G.T48T",,,0.68,0.81,0.60,rs11590458,,1,6237409,6237409,T,C,"het","204","49","60"
i want to pull out those lines which have values in columns 7, 8 and 9 (in this case the values in this line are 0.68,0.81,0.60,)
Is there a simple way of doing this using awk?
I initially tried matching those lines with no values in those columns with this command:
awk '{ if ($7=="" && $8=="" && $9=="" && $10=="") print $0'} | wc -l
but it doesn't work
Any advice is appreciated!
Cheers
My knowledge on shell linux/unix is pretty basic. I need some help with a command I don't think is working, it may be something simple, which I find is usually the case with informatics!
One line of my dataset looks like this:
"exonic","GPR153","synonymous SNV","NM_207370:c.A144G.T48T",,,0.68,0.81,0.60,rs11590458,,1,6237409,6237409,T,C,"het","204","49","60"
i want to pull out those lines which have values in columns 7, 8 and 9 (in this case the values in this line are 0.68,0.81,0.60,)
Is there a simple way of doing this using awk?
I initially tried matching those lines with no values in those columns with this command:
awk '{ if ($7=="" && $8=="" && $9=="" && $10=="") print $0'} | wc -l
but it doesn't work
Any advice is appreciated!
Cheers
Comment